Skip to main content
GameDev.net gamedev.net
🔒 Locked

Connection problems

Started by Mike.Popoloski Sep 4, 2005 at 11:24 AM 1 replies 900+ views
Original Post
Mike.Popoloski
Mike.Popoloski
Hi. I'm having a bit of trouble with my Winsock basic chat program that I wrote as a test of my new network system. I am pretty sure my code is right, because I can connect to myself and also through another computer I own, but whenever I get somebody long distance to connect to me, the Winsock return errors are either WSATIMEDOUT, or WSACONNREFUSED. Does anyone know why this might be? After reading the FAQ, I assume the problem might be that the ip address I give to people isnt the right one, because of router problems. However, we have tried many different ip's, such as the one from my network connections, one from www.whatismyip.com, etc. Any help would be appreciated.
Mike Popoloski | Journal | SlimDX
Vinterstum
Vinterstum
Most likely, you need to set up port forwarding in your router.

Basically, you need to tell the router that any incoming packets addressed to a specific port (which one depends on your application), needs to get forwarded to your PC.

http://www.portforward.com/ should have all the information you could ever need :)

You might also need to set up your firewall to allow the packets though.
ro4tub
ro4tub
if u and your friends use the router to visit the internet , u and your friends must nat(net address translation)!

How to NAT?
--->> config your router,it's simple following the introduction of your and your friends' router!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.