Sign in to follow this  
monkey7461

Publicly Host SDL_net Server

Recommended Posts

monkey7461    180

I recently learned how to use SDL_net, but I only know how to run the server and client on the same computer.  How could I run it through my LAN? Or the internet? Would I need a dedicated server to run the server program publicly?

Share this post


Link to post
Share on other sites
rpiller    839

If you want to simulate how it would/should be in production a dedicated server would most likely be it. All you should have to do is change your client that's connecting to "localhost" (I assume) to connect to the dedicated servers IP address.

Share this post


Link to post
Share on other sites
hplus0603    11347

The FAQ for this forum does give some pointers on "how do I host my game so that others can run it."

In general, you have to make sure that the machine that runs the server is visible to the greater internet, which generally means port forwarding from a firewall/router (in a residential setting) or some kind of hosted server.

Share this post


Link to post
Share on other sites
rpiller    839
You ISP most likely gives you a dynamic ip. You can use noir free service to get a host name that has your external ip addressed mapped to it. You run a program on your pc from them that sees any changes to your ip and updates the host name.

You will have to figure out port forwarding though on your router.

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