Jump to content
  • Advertisement
Sign in to follow this  
monkey7461

Publicly Host SDL_net Server

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

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
Advertisement

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

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
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
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!