Link to home
Start Free TrialLog in
Avatar of List244
List244

asked on

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.
Avatar of Da_Weasel
Da_Weasel
Flag of United States of America image

From your 'true ISP' can you ping or traceroute to the IP address of the computer listening for the connection?
Avatar of List244
List244

ASKER

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?
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"?
Avatar of List244

ASKER

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
so the server is sitting on a dedicated line like a T1 or Cable/DSL line?
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.
Avatar of List244

ASKER

No the router address does not work from remote addresses, just locally.

Da Weasel the computer is on a cable line, through the router.
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?
Avatar of List244

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Da_Weasel
Da_Weasel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of List244

ASKER

thanks