Allowing Others To Connect To Your Server

1. Hosting the server

You have two options when it comes to hosting your server:

  1. Rent a cloud instance to host it on.
  2. Host it on your own machine.

If you choose to host it on a cloud instance, you likely know what you're doing. Just copy the server package over and, if on Linux, install SDL2. Then, you can share the IP address and others will be able to connect.

If you choose to host it on your own machine, you'll likely have to forward a port in your router settings. This is a common process when self-hosting a game server, so just google "port forward guide".

To find which port you need to forward, look for the SERVER_PORT variable in Repose/Source/ConfigOverrides/Override/ServerConfig.h (default: 41499).

2. Changing the client's target IP

Our client needs to know the server's IP address. By default, it's set to the local host (that's why it works when you're running the server locally).

We can change it by opening "UserConfig.json" in the packaged "Client" directory and setting "serverIP" to your server's IP. You should be sure to do this before sending the packaged client to anyone, so that they only have to open the client and press "Connect".

If you're hosting the server on your own machine and don't know your public IP address, you can just google "what's my IP".