Rollo3691 Dec 22, 2014 @ 12:49am
Gmod server error "failed to bind to port - port is already being used" error.
My server port is "27015" for my gmod server, i did portforward and i have been on it. Lately, ive been having a problem and the server randomly when bootng up says, "failed to bind to port - port 27015 is already being used". and then it binds the port to a random port "27016" which i have never even portforwarded. So, apparently it thinks my port is being used for something else, even though it isn't. someone please help me if you can, and maybe if you are having this problem can you explain what you did to try and solve this issue.
< >
Showing 1-13 of 13 comments
Rollo3691 Dec 22, 2014 @ 12:51am 
Valve can you fix this issue, I am not using that particular port for anything and I cant find a way in the config to make the server forcefully boot up in the "27015" port, as intended.
laurent1683 Dec 22, 2014 @ 1:02am 
I do not know if it will help you, but I have them a similar problem to this with personal info ip and the only thing I've found to get my connection was on remmettrte google or other search server by resetting parameter, by default, because its server happens that research fits into internet explorer or google or opera ect ect and forces one of them to follow his connection port and after all your addresses are telling you that someone steal your account or false or incorrect connection say the IP address or port, but its incorrecfte just what google does manages more or explore intenet no longer manages the research check your search engine or something you downloaded there not have long software that asd left a kind of thing as an anti virus defense for the web with PS & Angé your search engine and there if you do not get them cancel service when a board remmeter default the paramettre your search engine and made a cleaning machines for windows if its not working for ccleaner or other cleaning-system for this kind of protection and search engine is very hard to do and changes the starting port and ip !! the only way the remmetre paramettre your default search engine !! here I think its should help you
Blaquicat Dec 22, 2014 @ 7:13am 
It is not "valve" thing to fix, the port is already in use, this mean "application", maybe you are trying to start the server with the game open.
Rollo3691 Dec 23, 2014 @ 3:59pm 
Originally posted by Blaquicat:
It is not "valve" thing to fix, the port is already in use, this mean "application", maybe you are trying to start the server with the game open.


Thanks for the help though, im new to making servers
Rollo3691 Dec 23, 2014 @ 4:08pm 
hey everyone, i know how to fix this problem temporarily. I have to reboot / restart my router, once its loaded start the server up.. shut it down, portforward another port, restart router and PC and start the server, and fixed! (its a pain in the ass).
Rollo3691 Dec 23, 2014 @ 4:09pm 
P.s the "love heart icon" is actually A.SS.
To fix it, Close garrrysmod. Launch the server. wait till it says VAC is enabled (or something like that) then launch gmod
Rollo3691 Jul 25, 2015 @ 12:12am 
Originally posted by AdamSandlerAttackCrab:
To fix it, Close garrrysmod. Launch the server. wait till it says VAC is enabled (or something like that) then launch gmod
Okay thanks for the help.
Hamyl Hamylton Jul 26, 2015 @ 7:03pm 
:)
Kamikaze Dec 25, 2015 @ 6:05pm 
That helped me, too. Thanks
Acecool Jan 8, 2016 @ 5:49pm 
The reason this happens is because the port is in use and the server uses a different port ( usually +1 or +2 ). The client typically uses -10 ( 27005 ) and +/-0 so if you're testing GMod with a client, launch the game separately.

If you want to see how I do it ( makes things a LOT easier ) then read this guide: https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_a_server_with_steamcmd.lua.html

https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_downloads_using_recursive_resource_system.lua.html

and follow a few extra steps ( if I didn't mention them in the guide; I'll update it soon ):

What I do to make testing as efficient as possible is to set up a bat file to launch the server with several things happening:
1) Delete both client and server log files ( if logging is enabled, these files can become quite large very fast ).
2) Update a client config file ( autoexec_lastlocal.cfg which is executed in autoexec.cfg ) alias "lastlocal" to the current server address.. ie: alias lastlocal "connect 10.0.0.2:27015" except using aliases so local = 27015, local16 = 27016, and so on... I have aliases set in autoexec.cfg for 15-25 or so.
3) Launch the server with the gamemode, map, port, etc...

3) varies a bit depending.. If I need to test with multiple players, I use +sv_lan 1 and -insecure so I can run Garry's Mod client multiple times using command line: -multirun and -steam

The first SteamID will be yours, the second will be STEAM_0:0:0, next will have the last 0 become a 1, then 2, and so on.





Here's the bat file should anyone else like to use it ( NOTE common may be your steam user-name depending how old your installation of gmod is for the client... you will need to use your own paths for the server and client... [ you could even set up variables to make it easier ] ):
---------------------------------------------------------------------------------------
del "Z:\dedicated_servers\server_1\garrysmod\console.log"
del "C:\Program Files (x86)\Steam\steamapps\common\garrysmod\garrysmod\console.log"

SET _file="C:\Program Files (x86)\Steam\steamapps\common\garrysmod\garrysmod\cfg\autoexec_lastlocal.cfg"
SET _data=alias lastlocal local
>%_file% ECHO %_data%

Z:\dedicated_servers\server_1\srcds.exe +gamemode acecooldev_framework +map gm_construct -port 27015 -insecure -game garrysmod -tickrate 33 +r_hunkalloclightmaps 0 +rcon_password 1234 +exec server.cfg -console -condebug
exit
---------------------------------------------------------------------------------------


Client cfg/autoexec.cfg contains this pasted in
---------------------------------------------------------------------------------------
alias dc disconnect
alias local15 "connect 10.0.0.2:27015"
alias local16 "connect 10.0.0.2:27016"
alias local17 "connect 10.0.0.2:27017"
alias local18 "connect 10.0.0.2:27018"
alias local19 "connect 10.0.0.2:27019"
alias local20 "connect 10.0.0.2:27020"
alias local21 "connect 10.0.0.2:27021"
alias local22 "connect 10.0.0.2:27022"
alias local23 "connect 10.0.0.2:27023"
alias local24 "connect 10.0.0.2:27024"
alias local25 "connect 10.0.0.2:27025"
alias local26 "connect 10.0.0.2:27026"
alias local27 "connect 10.0.0.2:27027"
alias local28 "connect 10.0.0.2:27028"
alias local29 "connect 10.0.0.2:27029"
alias local30 "connect 10.0.0.2:27030"
alias local31 "connect 10.0.0.2:27031"
alias local32 "connect 10.0.0.2:27032"
alias local33 "connect 10.0.0.2:27033"
alias local34 "connect 10.0.0.2:27034"
alias local35 "connect 10.0.0.2:27035"
alias local local15
exec autoexec_lastlocal.cfg
---------------------------------------------------------------------------------------

You can create autoexec_lastlocal.cfg or let the bat file create it for you. Use the appropriate alias ( or simply set the server launch bat file to set the ip instead of managing the aliases )



I also use the following launch commands when launching gmod through Steam:
-multirun -steam -condebug +lastlocal

which lets me launch a second gmod client ( through bat file only ) and auto connect to the last dev server I launched immediately after starting the game.

I also use an automatic restart app on crash app when developing so any client crash will relaunch the client and reconnect ( without any interaction from me ) and since the long is only removed when the server starts, I can run benchmarks and crash the game as many times as I need to see what works in keeping a stable server [ with clients ] and what doesn't. ).

My memory management methods allows me to have a server with many addons running at 300-400mb ( down to 160mb over time ), and the client low amounts compared to other servers, for weeks on end without restarting ( Declining health limits my use of the computer, sitting and walking so I leave benchmarks running 24/7 most days ).

Here's a list of apps I use: https://dl.dropboxusercontent.com/u/26074909/tutoring/___welcome_docs/_welcome_useful_programs_and_notepadpp_upgrades.lua.html
Rollo3691 Jan 18, 2016 @ 11:26pm 
Originally posted by Acecool:
The reason this happens is because the port is in use and the server uses a different port ( usually +1 or +2 ). The client typically uses -10 ( 27005 ) and +/-0 so if you're testing GMod with a client, launch the game separately.

If you want to see how I do it ( makes things a LOT easier ) then read this guide: https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_a_server_with_steamcmd.lua.html

https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_downloads_using_recursive_resource_system.lua.html

and follow a few extra steps ( if I didn't mention them in the guide; I'll update it soon ):

What I do to make testing as efficient as possible is to set up a bat file to launch the server with several things happening:
1) Delete both client and server log files ( if logging is enabled, these files can become quite large very fast ).
2) Update a client config file ( autoexec_lastlocal.cfg which is executed in autoexec.cfg ) alias "lastlocal" to the current server address.. ie: alias lastlocal "connect 10.0.0.2:27015" except using aliases so local = 27015, local16 = 27016, and so on... I have aliases set in autoexec.cfg for 15-25 or so.
3) Launch the server with the gamemode, map, port, etc...

3) varies a bit depending.. If I need to test with multiple players, I use +sv_lan 1 and -insecure so I can run Garry's Mod client multiple times using command line: -multirun and -steam

The first SteamID will be yours, the second will be STEAM_0:0:0, next will have the last 0 become a 1, then 2, and so on.





Here's the bat file should anyone else like to use it ( NOTE common may be your steam user-name depending how old your installation of gmod is for the client... you will need to use your own paths for the server and client... [ you could even set up variables to make it easier ] ):
---------------------------------------------------------------------------------------
del "Z:\dedicated_servers\server_1\garrysmod\console.log"
del "C:\Program Files (x86)\Steam\steamapps\common\garrysmod\garrysmod\console.log"

SET _file="C:\Program Files (x86)\Steam\steamapps\common\garrysmod\garrysmod\cfg\autoexec_lastlocal.cfg"
SET _data=alias lastlocal local
>%_file% ECHO %_data%

Z:\dedicated_servers\server_1\srcds.exe +gamemode acecooldev_framework +map gm_construct -port 27015 -insecure -game garrysmod -tickrate 33 +r_hunkalloclightmaps 0 +rcon_password 1234 +exec server.cfg -console -condebug
exit
---------------------------------------------------------------------------------------


Client cfg/autoexec.cfg contains this pasted in
---------------------------------------------------------------------------------------
alias dc disconnect
alias local15 "connect 10.0.0.2:27015"
alias local16 "connect 10.0.0.2:27016"
alias local17 "connect 10.0.0.2:27017"
alias local18 "connect 10.0.0.2:27018"
alias local19 "connect 10.0.0.2:27019"
alias local20 "connect 10.0.0.2:27020"
alias local21 "connect 10.0.0.2:27021"
alias local22 "connect 10.0.0.2:27022"
alias local23 "connect 10.0.0.2:27023"
alias local24 "connect 10.0.0.2:27024"
alias local25 "connect 10.0.0.2:27025"
alias local26 "connect 10.0.0.2:27026"
alias local27 "connect 10.0.0.2:27027"
alias local28 "connect 10.0.0.2:27028"
alias local29 "connect 10.0.0.2:27029"
alias local30 "connect 10.0.0.2:27030"
alias local31 "connect 10.0.0.2:27031"
alias local32 "connect 10.0.0.2:27032"
alias local33 "connect 10.0.0.2:27033"
alias local34 "connect 10.0.0.2:27034"
alias local35 "connect 10.0.0.2:27035"
alias local local15
exec autoexec_lastlocal.cfg
---------------------------------------------------------------------------------------

You can create autoexec_lastlocal.cfg or let the bat file create it for you. Use the appropriate alias ( or simply set the server launch bat file to set the ip instead of managing the aliases )



I also use the following launch commands when launching gmod through Steam:
-multirun -steam -condebug +lastlocal

which lets me launch a second gmod client ( through bat file only ) and auto connect to the last dev server I launched immediately after starting the game.

I also use an automatic restart app on crash app when developing so any client crash will relaunch the client and reconnect ( without any interaction from me ) and since the long is only removed when the server starts, I can run benchmarks and crash the game as many times as I need to see what works in keeping a stable server [ with clients ] and what doesn't. ).

My memory management methods allows me to have a server with many addons running at 300-400mb ( down to 160mb over time ), and the client low amounts compared to other servers, for weeks on end without restarting ( Declining health limits my use of the computer, sitting and walking so I leave benchmarks running 24/7 most days ).

Here's a list of apps I use: https://dl.dropboxusercontent.com/u/26074909/tutoring/___welcome_docs/_welcome_useful_programs_and_notepadpp_upgrades.lua.html
Thanks that helped
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Dec 22, 2014 @ 12:49am
Posts: 13