?
Solved

Winsock Connection problem

Posted on 2003-02-27
11
Medium Priority
?
243 Views
Last Modified: 2013-11-13
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
Comment
Question by:List244
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
11 Comments
 
LVL 3

Expert Comment

by:Da_Weasel
ID: 8039701
From your 'true ISP' can you ping or traceroute to the IP address of the computer listening for the connection?
0
 
LVL 8

Author Comment

by:List244
ID: 8041763
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
 
LVL 3

Expert Comment

by:Da_Weasel
ID: 8042502
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Author Comment

by:List244
ID: 8045285
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
 
LVL 3

Expert Comment

by:Da_Weasel
ID: 8046805
so the server is sitting on a dedicated line like a T1 or Cable/DSL line?
0
 

Expert Comment

by:Zero42
ID: 8051741
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
 
LVL 8

Author Comment

by:List244
ID: 8053326
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
 
LVL 3

Expert Comment

by:Da_Weasel
ID: 8057755
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
 
LVL 8

Author Comment

by:List244
ID: 8060312
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
 
LVL 3

Accepted Solution

by:
Da_Weasel earned 580 total points
ID: 8060507
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
 
LVL 8

Author Comment

by:List244
ID: 8075867
thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question