Garry's Mod Server Connection failed after 4 retries
4 replies, posted
Hey guys,
Me and my friend are having a problem with my server. When he joins, sometimes he can join, but sometimes he gets the error, "Connection failed after 4 retries". Also, when I do join when he can get on, He freezes in-game and disconnects! I would also like to note that I am running the server on the computer I am running Garry's Mod on, but I checked my ports, and none are conflicting.
Router: Belkin F5D8235-4v2
Ports Forwarded:
3478-3478 TCP/UDP
4379-4380 TCP/UDP
27000-27050 TCP/UDP
This is how I got these ports: [url]http://portforward.com/english/routers/port_forwarding/Belkin/F5D8235-4v2/Garrys_Mod.htm[/url]
Thanks in advance!
Put -port 27016 in your server's startup.bat. Also, try disabling your firewall temporarily to see if it is causing inbound connection conflicts.
When your friend has issues, run [url=http://www.yougetsignal.com/tools/open-ports/]this tool[/url]. If this tool reports that the port is open, it's most likely your friend having problems
[QUOTE=code_gs;44513658]Put -port 27016 in your server's startup.bat. Also, try disabling your firewall temporarily to see if it is causing inbound connection conflicts.[/QUOTE]
I tried that and it didn't work, he froze when I joined. Also, my firewall is disabled.
This is what it said in the console when I joined:
[CODE]WARNING: Port 27005 was unavailable - bound to port 27006 instead
WARNING: Port 27020 was unavailable - bound to port 27021 instead
Network: IP 192.168.2.3, mode MP, dedicated No, ports 27015 SV / 27006 CL
Connecting to xx.xxx.xx.xxx:27016...
Connected to xx.xxx.xx.xxx:27016
Sandbox
Map: gm_bigcity_hdr
Players: 2 / 16
Build: 5627
Server Number: 1
[/CODE]
I SOLVED THE PROBLEM! To whom it may concern, here's how:
Note: This is if you're running Garry's Mod and the server on the same computer
First off, make sure your Garry's Mod is running off of port 27015, if it isn't right click it in Steam, and go to Properties->Set Launch options, and type in +clientport 27015. Also, go to C:/Program Files/Steam/SteamApps/common/GarrysMod/garrysmod/cfg/userconfig.cfg, and type in clientport 27015
Now for the server. I used a tool called Currports to see what ports were being allocated on my computer. For the following steps, use a port between 27015 and 27032, but don't use 27020. I chose to use 27018, but you can decide which one you want to use. Go to your server's startup bat and type in -port 270xx (whatever port you used). Now, go to /ServerFolder/garrysmod/cfg/userconfig.cfg, and type in clientport 270xx (once again, whatever port you used).
I hope this helped! Thanks to everyone that replied :D
Sorry, you need to Log In to post a reply to this thread.