Unable to connect locally to GMOD SRCDS, Others can connect though
I made a dedicated server for gmod, (You can actually join it to test, its "FinnWorld")
Others can connect to it, its forwarded, np with the firewall, the ip is correct, but what is wrong?
error msg by gmod: Connection failed after 6 retries.
my start.bat: @echo off
title srdcs.exe Watch_Doges
:srdcs
start /wait srcds.exe -console +hostname "FinnWorld[WIRE][FASTDL][PAC3][PVP & BUILD]" -game garrysmod +map gm_bigcity +maxplayers 16 -authkey (MY AUTHKEY, NO I WONT LET YOU KNOW IT!) +host_workshop_collection 798333332 +login anonymous +ip 192.168.0.100
goto srdcs
Best Answer
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
oripconfig /all
, "IPv4-address", one of them will be your desired address) and connect to it via consoleconnect 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!
Pictures about "Unable to connect locally to GMOD SRCDS, Others can connect though"
How do you connect to LAN on GMOD?
Garry's Mod when you start a new game instead of leaving it as a single player game select 2 player then when the game starts click shift+tab find your friend and right click on his avatar the click invite to game.How can my friend join my GMOD server?
DESCRIPTION: Steam has a longstanding bug that causes it to not bind TCP connections to the correct IP address on the outbound. This basically means that the game is reporting the wrong IP address to the HEARTBEAT server that lists your known external IP address to the world, so people can connect to you remotely.How To: Create \u0026 Set up a Garry's Mod Dedicated Server (2022)
More answers regarding unable to connect locally to GMOD SRCDS, Others can connect though
Answer 2
Ok, It turns out that when I was running gmod and the server on the same computer, the server was sending out stuff at port 27015 and gmod tried to send out signals on 27015. changed port to 27016 and +clientport 27006 if it still doesnt work. I'll leave this out here if it intrests somebody
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Pixabay, Brett Sayles, Kaique Rocha