Jump to content
  • Advertisement
Sign in to follow this  

Remotely Connecting to a Server [SDL_net]

This topic is 2220 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

Argh! So many SDL_net problems! This one is probably the most important one. I have a basic chat working. However, I'm not sure how to have clients remotely connect. I have port forwarded on my server port (9001), and replaced "localhost" with my external IP address. However, the clients are still unable to connect. If you need any code, just ask. Have you guys had the same problem?

Thanks in advance.

Share this post

Link to post
Share on other sites
You are required to allow it through your firewall for sure. When first testing, if the Windows firewall is in question at all just turn it off.

A) First test locally, with your local i.p. (e.g.
B) Next, test on the local network, say from "Family computer" ( connecting to the i.p. of "Exiled Server" (

*Forward port TCP 9001 to the i.p. for Exiled Server (e.g.*

C) Connect from a remote computer to your external i.p. (e.g.

If step [color=#ff0000]A fails, your program is bugged.
If step [color=#008000]A works and [color=#ff0000]B fails, it is a firewall/antivirus related issue.
If steps [color=#008000]A and [color=#008000]B work and [color=#ff0000]C fails, you have port-forwarded incorrectly.

If [color=#008000]A , [color=#008000]B, an d [color=#008000]C work then you win!


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!