![]() ![]() After you do that, you need to generate the server build by running: You need to set up a development environment in order to produce a server build for custom code. This has to look like this: udp://:1212 (for our server, obviously substitute with your params). ![]() Note that if you do this you have to set the nnectaddress config variable to specify the UDP address the main netcode should connect to. This is recommended for production servers since then you can do HTTPS (slap it behind nginx and turn on HTTPS). You can slap the HTTP status API behind a reverse proxy if you want. This can be configured with the status.bind configuration variable (which takes in a string like *:1212 or 127.0.0.1:3000).įor more information about how to forward your ports, see: Port Forwarding ¶ Advanced Port Forwarding You do not need this to connect with a bare client. This is also necessary for the launcher to be able to connect to the server. ![]() This can be configured with the net.port configuration variable. This is necessary for the client to be able to connect to the server. UDP 1212 is used for main game netcode.By default, the game server uses two ports: The server needs network ports to be forwarded so that people can connect. Just make sure to download a new version of the server at least every week. Obviously this is not a problem if you want to set up a quick and dirty private server for your friends. We do not keep those builds around forever so eventually people will no longer be able to connect to the server. Note that when you run a server like this, the build information that the launcher needs (so it has a version of the client to download) points to our central server. ![]() If you wish to have your server listed on the hub please read Bare Server Configuration below. This also won't list your server publicly on the hub as advertising defaults to off. This will not, of course, handle automatic restarts (in case of a crash) or updates like the watchdog would.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |