Sign in to follow this  
Exiled

Remotely Connecting to a Server [SDL_net]

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.
-Exiled

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. 192.168.1.101)
B) Next, test on the local network, say from "Family computer" (192.168.1.102) connecting to the i.p. of "Exiled Server" (192.168.1.101)

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

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

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

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

pi`

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this