Sign in to follow this  
Followers 0
monkey7461

Publicly Host SDL_net Server

4 posts in this topic

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?

0

Share this post


Link to post
Share on other sites

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.

0

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.

1

Share this post


Link to post
Share on other sites
Ah. Thanks. Its a pain to port forward with my router for some reason though. How would I run the server locally?
0

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

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  
Followers 0