Jump to content
  • Advertisement
Sign in to follow this  
Mike.Popoloski

Connection problems

This topic is 4819 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!