Using correct srcds command line parameters
Source dedicated server comand-line options may be misleading.
You should specify bind address and listening port with -ip
and '-port' (NOT +ip
/+port
. Options beginning with -
is a command line parameter whereas +
indicates ConVar
All available Source Dedicated Server command-line parameters are listed here (6.1)
+ip 192.168.0.100
is wrong. Correct command line parameters is:
-ip 0.0.0.0 -port 27015
Always use -ip 0.0.0.0
, DON'T use any other address
Connecting to your server
Source games will not connect to your server if you don't type correct LAN IP address, so, there is two ways:
- (easy) Open your game, click "Find servers > Legacy serverbrowser > LAN tab"
- (easy) Right click on steam icon, "Servers" > "LAN".
- Find out your LAN ip address (via command-line:
ipconfig
or ipconfig /all
, "IPv4-address", one of them will be your desired address) and connect to it via console connect 192.168.0.2:27015
. Make sure server is actually listening on that port.
Sometimes (re)starting a server while game is running may result in server using different port.
You can't connect to source server via connect 127.0.0.1:port
regardless of server's bind address, port or other settings!