SRCDS Steam group


Running multiple servers on one server?
#1
Hello when i do this command

./srcds_run -game cstrike +map de_dust +maxplayers 32 -ip 67.43.159.23 -port 27015

It gives me errors

Quote:oot@westside [~]# cd /root/srcds_1
root@westside [~/srcds_1]# ./srcds_run -game cstrike +map de_dust +maxplayers 32
Auto detecting CPU
Using SSE2 Optimised binary.
Auto-restarting the server on crash

Console initialized.
WARNING: NNET_OpenSocket: bind: Cannot assign requested address
Couldn't allocate dedicated server UDP port
Add "-debug" to the ./srcds_run command line to generate a debug.log to help wit
Sun Jan 9 21:42:09 EST 2005: Server restart in 10 seconds

So what am i doing wrong how do i make it run on diffrent ips on 1 server?
Reply
#2
Hard to say exactly what your problem is here from the info you've given, running a server on different IPs is straightforward you just need to specify '+ip xxx.xxx.xxx.xxx' I note in your quote you've used -ip which I don't believe will work. If you want to use the same IP to run multiple servers you just need to specify different ports 27015/16/17 or whatever you choose, again specified from the command line but this time using the '-port xxxxx' directive.

Hope this helps,
AfterGlow
Reply
#3
partially right, +ip is no longer used in srcds. You need to change the port as afterglow said you can't have 2 different srcds on the same port, so if you have one on 27015 then run it with -port 27016 or 27020
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#4
NO i want to run the server on a diffrent ip . and when i make it run on diffrent ips then my main one it gives me the error above.
Reply
#5
I think they are trying to say that to run two different servers on two different IPs, you must specify the IP and port for both instances. Use +ip and -port and each servers should be different IPS and Ports.

Tracer
CS:Source 66.194.153.223:27015
Natural Selection 66.194.153.223:27016
Reply
#6
k i did this command
./hlds_run -console -game czero +ip 67.43.159.24 -port 27015 +maxplayers 26 +map de_dust_cz
and i get that error below. but this works on my main ip though!!

WARNING: UDP_OpenSocket: port: 27015 bind: Cannot assign requested address
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.

Quote:root@westside [~/hlds/czero2]# ./hlds_run -console -game czero -port 27015 +ip 67.43.159.24 -port 27015 +maxplayers 26 +map de_dust_cz
Auto detecting CPU
Using Pentium II Optimised binary.
Auto-restarting the server on crash

Console initialized.
scandir failed:/root/hlds/czero2/./cstrike/SAVE
scandir failed:/root/hlds/czero2/./valve/SAVE
scandir failed:/root/hlds/czero2/./platform/SAVE
Protocol version 47
Exe version 1.0.0.2/Stdio (czero)
Exe build: 02:38:31 Jul 7 2004 (2738)
STEAM Auth Server
couldn't exec language.cfg
WARNING: UDP_OpenSocket: port: 27015 bind: Cannot assign requested address
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
Tue Jan 11 08:49:04 EST 2005: Server restart in 10 seconds
Reply
#7
your definately using a different port for each process?
Clanplanet.co.uk Gaming Servers
Licensed Ventrilo Host - AA Honor Provider - Great Service & Prices
Reply
#8
Well with th additional ips that my host gives me cant i run multiple servers? on same port since i have like 5 diffrent ips and i can run each server on each ip? is that possible? Im using linux shell access!
Reply
#9
try
Code:
-ip 67.43.159.24
Also as a general notice, stuff like srdds should be ran as a normal user, and not root, root is mostly only used for system upgrades and such. as a rule of thumb apps should be ran under a normal user.

also, be sure those ips are active, can you ping them? try running ifconfig
how many eth0 print up?
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#10
well my main ip works but when i try pinging additional ips it just timesout!! for asigning ips does the other additional ips have to ping to work for a cz or cs source server? If so can my host do this for me or can i easily do it by myself? Heres whats in ifconfig
Also you can see eht0:2 has the additional ip assigned which is 67.43.159.25!! My friend assigned it like that!! but still when doing this command it doesnt work


./hlds_run -console -game czero -secure -port 27015 +ip 67.43.159.25 +maxplayers 27 +map de_d
ust_cz
Quote:@westside [~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:11:AE:8D:60
inet addr:67.43.159.22 Bcast:67.43.159.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10032468 errors:0 dropped:0 overruns:0 frame:0
TX packets:7920948 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:985289365 (939.6 Mb) TX bytes:1982076670 (1890.2 Mb)
Interrupt:11

eth0:2 Link encap:Ethernet HWaddr 00:11:11:AE:8D:60
inet addr:66.43.159.25 Bcast:66.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10032468 errors:0 dropped:0 overruns:0 frame:0
TX packets:7920948 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:985289365 (939.6 Mb) TX bytes:1982076670 (1890.2 Mb)
Interrupt:11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:29696 errors:0 dropped:0 overruns:0 frame:0
TX packets:29696 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7507911 (7.1 Mb) TX bytes:7507911 (7.1 Mb)

Reply
#11
I am pretty sure you have to have two different ports, no matter if they are different IP addresses.

Also, are you trying to run HLDS or SRCDS? Your startup line says HLDS, not source.

Tracer
CS:Source 66.194.153.223:27015
Natural Selection 66.194.153.223:27016
Reply
#12
I think i figured out problem!! The additional ips arent enabled so my host is doing it right now!! I'll let everyone know if it fixed that!! Big Grin
Reply
#13
Yup problem solved they just needed to enable extra ips!Big Grin
Reply
#14
put *SOLVED* in front of the post
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)