I recently set up a FreeBSD box to turn into an NS server. (If you caught my earlier post asking if a P3 450 MHz was fast enough, this is another, faster computer.)
I have a little script for starting the server called "run," which reads:
| CODE |
| ./hlds_run -game ns +ip xxx.xxx.xxx.xxx -port 27017 +maxplayers 20 |
| CODE |
| Auto detecting CPU Using AMD Optimised binary. Auto-restarting the server on crash Console initialized. scandir failed:/usr/home/steam/hlds_l/./valve/SAVE scandir failed:/usr/home/steam/hlds_l/./platform/SAVE Protocol version 47 Exe version 1.1.2.0/Stdio (valve) Exe build: 02:38:45 Jul 7 2004 (2738) STEAM Auth Server couldn't exec language.cfg WARNING: UDP_OpenSocket: port: 27017 bind: Cannot assign requested address FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27017. Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem Sun Oct 3 14:56:09 PDT 2004: Server restart in 10 seconds Sun Oct 3 14:56:10 PDT 2004: Server Quit |
| CODE |
| ./hlds_run -game ns +exec server.cfg +ip xxx.xxx.xxx.xxx -port 27017 +maxplayers 20 +map ns_nancy |
| QUOTE |
| You sure nothing else is using that port? Check your running processes and make sure you kill all previous HLDS processes before you try again. |