SoF Dedicated Server - HOWTO
- Download and install SoFplus dedicated server
- Optionally, edit the configuration files (see the included sofplus-server-readme.txt):
- user-server/dedicated.cfg
- user-server/sofplus-cvars.cfg
- user-server/sofplus/sofplus_sv.func
- Optionally, change the ports the server will be listening on.
By default, the server hostport will be set to port 28910 and the gamespyport will be set to port 28911. If you want to use different ports, edit sof-server-start.bat - Start the server with sof-server-start.bat
- Configure your Windows firewall (if present):
- Allow SoF-spsv.exe access to the internet.
- Allow incoming traffic on UDP port 28910 and 28911.
- Configure your router (if present):
Forward UDP port 28910 and 28911 to the LAN IP address of the PC that is running your SoF server.
If you don't know the LAN IP address, type 'ip_list' in your SoF server console:]ip_list REMOTE IP #1: 192.168.1.123
If you see something like 192.168.xxx.xxx or 10.xxx.xxx.xxx, that's the server LAN IP. If you see 127.0.0.1, that's NOT your LAN IP and you'll need to figure out your LAN IP by other means (e.g. type 'ipconfig' on a command prompt).
To setup port forwarding for your router, go to http://portforward.com/english/routers/port_forwarding/routerindex.htm, select your router and then the Soldier of Fortune page. The page explains how to forward port 28910 .. 28915, but only forwarding UDP port 28910 and 28911 is sufficient. - Test if your server is accessible from the Internet by clicking both links below. If the pages show server information (and not 'No response from server'), that means that your server is OK. Note: If the IP or port on the server status pages is incorrect, please edit the IP and/or port in the address bar of your Internet browser.
Some basic server commands:
status | Display current map and a list of players |
quit | Stop the server |
map dm/nycdm1 | Change map to dm/nycdm1 |
cmdlist | Display a list of all available server commands |
cvarlist | Display a list of all available cvars |
Note: Don't scroll the server console, because the server freezes when you do that (players will hate your server). When something interesting scrolls off the screen, look in user-server/sof.log, where all console text will be saved.