A dedicated server is a netgame server in which the host doesn't need to join their own game. Instead of acting in the game as a player, the host watches the game from either a Win32 command window (in Windows) or TermIOS console window (in Linux). The host and other people can join and play the game, and the host can execute console commands normally available in a regular server through the command window. This allows the host to multitask outside of hosting, such as leaving the server running during the day, or multitasking with the game in the background. Dedicated servers are also more efficient, taking up less CPU than the normal version of SRB2.
Hosting a dedicated server
When hosting a dedicated server, you will need to launch the game with the command line parameter
-dedicated. To host on the Master Server, the parameter
-room ID needs to be applied. The room ID should be 33 for the Standard Room and 28 for the Casual Room.
Joining your own dedicated server
In order to join your own server, run SRB2 with the
-clientport 5030 (or any port which isn't used by your server, SRB2 normally uses 5029.) and
-connect [your Local IP] parameters. Please note that you will join as a normal client, so you may need to use some server commands in order to verify yourself and perform most administrative actions from the client. There are some commands you cannot use without the dedicated server console - such as
blamecfail, being an admin. These will still need to be used through the dedicated server console window.
Alternatively, you can download these batch files which will make hosting and joining your own dedicated server easy. Put them in your SRB2 folder and run them.
What is my local IP?
You need to know your local IP to join your own dedicated server. Here are step by step instructions on how to obtain your local IP address:
1. Click on the Start menu and type cmd. When you see the cmd applications in Start menu panel, click it or just press enter.
2. A command line window will open. Type ipconfig and press enter.
3. You'll see a bunch of information, but the line you want to look for is "IPv4 Address." The number across from that text is your local IP address.
The old way of hosting dedicated servers (
-connect 127.0.0.1 for SRB2 2.0.X and before) does not work. Instead you must use
-connect [your Local IP] for SRB2 2.1.X and above.