PDA

View Full Version : Specified IP Address wont bind


shaka0070
September 23rd, 2003, Tuesday September 23, 2003 10:19:29 PM
I setup the new CS 1.6 server. Everything is working correctly and I am able to join on the default IP address for the machine.

I am using hlds.exe from the command line and I am specifying the port and ip address in the command line when I try and start it up. However, it wont bind to the ip address I specify. I have 12 IP addresses on my machine and hlds will only bind to the default address.

I have the software installed on Windows 2003 Server.

My command line is exactly the following;

C:\HLServer\hlds.exe -console -game cstrike +log on +sv_lan 0 +maxplayers 30 +map cs_office -ip 66.36.XXX.XXX -port 27015 -autoupdate

And of course I omitted my real ip address.

Any suggesntions? As you can see, I am using the command line properly... at least I think I am. What would cause hlds from always binding to the promary ip address? I dont want people connecting to the promary address and I want to run multiple servers at the same time using different ip addresses.

Milenko
September 24th, 2003, Wednesday September 24, 2003 06:19:36 AM
Use + instead of - for the IP and port usage.

shaka0070
September 24th, 2003, Wednesday September 24, 2003 02:29:49 PM
Good idea, but it didnt do anything.

HELP!

Milenko
September 24th, 2003, Wednesday September 24, 2003 02:37:12 PM
Might wanna try changing the commandline around a little bit, I don't know if it will work - I thought I heard it before though...

C:\HLServer\hlds.exe -console +ip 66.36.XXX.XXX +port 27015-game cstrike +log on +sv_lan 0 +maxplayers 30 +map cs_office -autoupdate

shaka0070
September 24th, 2003, Wednesday September 24, 2003 02:42:20 PM
Another good idea but I actually already tried that. I also have tried binding to all of my various IP addresses that are setup on my NIC card. I have ten in total. In every case, hlds will only launch on my primary ip address.

Man oh man... this sux. I really need help on this one.

shaka0070
September 24th, 2003, Wednesday September 24, 2003 05:10:21 PM
Okay I got it to work...

My command line now looks like this;

C:\HLServer\hlds.exe -console +ip 66.36.XXX.XXX +port 27015-game cstrike +sv_lan 0 +maxplayers 30 +map cs_office -autoupdate

The difference? I removed +log on from the command line and moved it into my server.cfg file

Pretty lame that hlds would not bind to any ip addresses with that log on command in the command line.

Anyway, hopefully this post will help someone else who may be experiencing the same problems.

FatDaddy
September 24th, 2003, Wednesday September 24, 2003 05:15:21 PM
add +mapchangecfgfile "server.cfg" to your command line so that the server loads your server.cfg on each map change.