Raised This Month: $12 Target: $400
 3% 

Couldn't allocate any server IP port :Server Quit [CSGO]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheOnionKnight
New Member
Join Date: Jul 2020
Old 04-19-2021 , 22:22   Couldn't allocate any server IP port :Server Quit [CSGO]
Reply With Quote #1

So i recently moved from centos 8 to centos 7 where i host about 3 csgo server in my personal dedicated computer. And the issue here is that running the server2.sh file which is
Code:
#!/bin/bash
cd "/home/username/server2/"
screen -L -dmS retake ./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 -maxplayers_override 11 +exec server.cfg +map de_mirage -tickrate 128 +sv_setsteamaccount XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +ip 192.168.1.100 -net_port_try 1 -port 27016 -nohltv
This will give this error :
Code:
NET_CloseAllSockets
WARNING: NET_OpenSocket: bind: Cannot assign requested address
Couldn't allocate any server IP port, tried 1 addresses 192.168.1.100 Tue Apr 20 08:01:08 +0545 2021: Server Quit
If i remove the "+ip" from the server2.sh file , it will work but the rcon then will not work. And rcon is a must have for me.

And executing this through the bash works without a hitch and the server starts but will not work when using cron or system.d to start after boot. I've setup my cron like so:
Code:
@reboot /home/username/server2/server2.sh
Ive never faced this problem before and tried every method to fix it but it just doesnt work.

Last edited by TheOnionKnight; 04-19-2021 at 22:22.
TheOnionKnight is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 04-20-2021 , 06:45   Re: Couldn't allocate any server IP port :Server Quit [CSGO]
Reply With Quote #2

Bind the correct IP and make sure the port is not already bound.
That's all.
If you are not able to get it working that way you may want to try LinuxGSM.

Last edited by TomL.; 04-20-2021 at 06:46.
TomL. is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode