• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

Winsock Connection problem

Okay, my program uses winsock, it listens on a port. It connects locally if I connect through the routers Ip.
Though if I connect from a remote computer or locally through my true ip, it Doesn't anyone have any reasons why it will not connect when using my real ip address?

It does not even get to Connection request, the client simply says it can not connect as if the ip does not exist.
0
List244
Asked:
List244
  • 5
  • 5
1 Solution
 
Da_WeaselCommented:
From your 'true ISP' can you ping or traceroute to the IP address of the computer listening for the connection?
0
 
List244Author Commented:
Kind of, it does figure out what isp im using
such as : [X-XX-XXX-XXX-XX.we.client2.attbi.com]
then after that simply a list like
Timed out
Timed out
etc...
Any ideas?
0
 
Da_WeaselCommented:
DNS is resolving but you get no response from the server.
the computer at X-XX-XXX-XXX-XX.we.client2.attbi.com is probably behind a firewall.

Can the machine X-XX-XXX-XXX-XX.we.client2.attbi.com ping the computer that is connected to your "true ISP"?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
List244Author Commented:
The computer at the ip address has no firewall. I am testing from both on the computer itself and from remote ones. This computer can connect to itself through the routers ip, but not through the correct ip of the computer. and remote computers can not connect at all
0
 
Da_WeaselCommented:
so the server is sitting on a dedicated line like a T1 or Cable/DSL line?
0
 
Zero42Commented:
Have you tried to connect remotely using the routers IP address? I think that might work, but I'm not entirely sure. It would seem like it would.
0
 
List244Author Commented:
No the router address does not work from remote addresses, just locally.

Da Weasel the computer is on a cable line, through the router.
0
 
Da_WeaselCommented:
Please verify that the following statements are True:
1. So you have a 2 computers hooked up to the cable router.
2. Both have internet access via the router.
3. One also has internet access via a dialup connection.
4. The computer with the client program can communicate with the server program, but when you dial up to the internet via a modem, or via your ISPs cable service you can no longer communicate with the server.

If number 4 is true your issue lies in the network bindings.  What is happening is that the interface for your internet service is listed above your local.  So when you try to connect, it is looking on the internet for the server.

What version of Windows are you running on each machine?
How many network cards/modems are in each machine?
0
 
List244Author Commented:
Okay, the program will connect from other computers connected to the router, this program is not sopposed to run on a local network.

The problem i am having is getting people from remote computers not on my local network. to be able to connect to my computer.

I am running Win2000 Professional.
0
 
Da_WeaselCommented:
computers connected to your router ARE a 'local area network', unless the all have public (routable on the internet) addresses.

If your local computer is plugged into the router, and its Network Interface has not been assigned a public (routable on the internet) address then it is using NAT (Network Address Translation) to allow your local machine to see the internet.  This means that your local computer CANNOT be seen by others on the internet unless you initiate contact with them.

If your router allows you access to the Routing Tables you can add a static entry that routes all incomming traffic on certain ports to your local computer.  This entry in the routing table is the only way make your computer reachable by others on the internet, without your local computer first initiating contact with the computer on the internet.
0
 
List244Author Commented:
thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now