By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,626 Members | 1,424 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,626 IT Pros & Developers. It's quick & easy.

WINSOCK connection to a remote ip problem.

P: 6
Hello! First, excuse me if I have any mistakes because Bulgarian is my native language and English is a foreign one. So the problem is:
I have a chat program with to parts: server and client ones.
When I start both of them on my computer and start listening on the port I told the program and connect with the client one, everything is OK. I decided to test the program with some friends and gave them the server part. They start listeting on port 123 for example and I'm trying to connect them but the program says "Request time out" because it doesn't connect. Are there any additional files except mswinsck.ocx which are necessary to run a program with WINSOCK control in it.

Best regards,
Penko Mitev
Mar 24 '07 #1
Share this Question
Share on Google+
4 Replies


vijaydiwakar
100+
P: 579
Hello! First, excuse me if I have any mistakes because Bulgarian is my native language and English is a foreign one. So the problem is:
I have a chat program with to parts: server and client ones.
When I start both of them on my computer and start listening on the port I told the program and connect with the client one, everything is OK. I decided to test the program with some friends and gave them the server part. They start listeting on port 123 for example and I'm trying to connect them but the program says "Request time out" because it doesn't connect. Are there any additional files except mswinsck.ocx which are necessary to run a program with WINSOCK control in it.

Best regards,
Penko Mitev
No
check ur network
Mar 24 '07 #2

P: 6
Well,
I tried it with a friend from another town, it worked. I do not know how it is possible, maybe something in our nets is....

Thanks to the person above,
Best regards
Penko Mitev
Mar 24 '07 #3

Robbie
100+
P: 180
The problem is probably that your first friends were using a router to connect to the internet. When you tried to connect to them, you were only actually connecting to their router. The router didn't know what computer (on the LAN) to send that request to, so it dumped it.

To get it to work, the router needs to know to send requests which come on port 123 for example, to the right computer. That's called port-forwarding, you should be able to find some info pretty easily if you do a little search. It's a common problem now so many people like to have wireless connections, I doubt it's really a problem with your programming. ;)
Apr 3 '07 #4

Dököll
Expert 100+
P: 2,364
Good point guys!

Also, you should ping your friends, see if you can reach them that way. Request time out tells me you're not connecting to their IP. Are your friends running a DHPC line? Their IP may have changed on you...

Good luck with the project!

Dököll
Apr 14 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.