Setting Up A Ns Server
ImpactDNI
Join Date: 2003-01-24 Member: 12670Members
<div class="IPBDescription">Need some help!!!</div> Alright, to begin with, my clan needs a server, Im on a fairly unsaturated network, and was thinking of hosting it! I have the dedicated server files, and it runs, but heres my problem:
The cable line that comes into my house hits a router, and is split between 3 different computers (soon to be 4). Therefore, my external IP address is different then my Internal (each computer inside is 192.168.123.xxx, and the router is 192.168.123.254, the problem is, when i host the server, it hosts it on the internal IP, somehow, people have been joining... And dropping, and playing... But i cant find my own server... My other computer can find it on "LAN Game" but it lists it as 192.168.123.xxx.... Gamespy doesn't list it, Anyone have any clue as to how to work around routers?
The cable line that comes into my house hits a router, and is split between 3 different computers (soon to be 4). Therefore, my external IP address is different then my Internal (each computer inside is 192.168.123.xxx, and the router is 192.168.123.254, the problem is, when i host the server, it hosts it on the internal IP, somehow, people have been joining... And dropping, and playing... But i cant find my own server... My other computer can find it on "LAN Game" but it lists it as 192.168.123.xxx.... Gamespy doesn't list it, Anyone have any clue as to how to work around routers?
Comments
[edit]
-game ns +exec server.cfg +ip xxx.xxx.xxx.xxx +maxplayers ** +map ns_eclipse should be in your shortcut
and you router should be configured like this:
Incoming UDP to local destination 27015.
Outgoing UDP to remote destination 27010, 27012.
Outgoing TCP to remote destination 5273.
Outgoing TCP to remote destination 7002.
and someone correct me if im wrong please
[edit]
-game ns +exec server.cfg +ip xxx.xxx.xxx.xxx +maxplayers ** +map ns_eclipse should be in your shortcut
and you router should be configured like this:
Incoming UDP to local destination 27015.
Outgoing UDP to remote destination 27010, 27012.
Outgoing TCP to remote destination 5273.
Outgoing TCP to remote destination 7002.
and someone correct me if im wrong please<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
here i go correcting you
He's behind a router so +ip will not work at all.
Incoming UDP 27015
Incoming TCP 6002 and 7003
As far as outgoing......the NAT will outmaticly translate that.
you don't need +exec server.cfg as it does that automaticly
#2, explain where on my router to config that...
If it helps: I have a Gigafast 400 RP router....
Didn't really follow how all that worked
Outgoing TCP to remote destination 5273.
Outgoing TCP to remote destination 7002.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
outgoing router settings are completely unnecessary (I wasn't even aware that residential routers had that complex of options).
Also, since he already has people connecting to his server then he probably has his server computer set to the dmz or at least already has the right port forwarding setup, which means he doesn't much have to worry about the router so much.
I run a server behind a blanket tcp firewall (on an .edu connection, so no complaints <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->) and also have problems of people not being able to "see" my server using the normal halflife server browser. You might have to rely on people that use something more sophisticated such as the all seeing eye or something.
in the meantime, just to make sure you can get at your own server, you can make a desktop shortcut to connect to your own server by simply tacking on "+connect my.server.ip.here:my-port-here".
Sorry I can't be of any help as to getting it to show up in lists, I'm still working on that one myself for my server.
well, unless a game actually starts (as in 2 players playing), that's pretty much all that shows up in the logs. Just make sure there's a span of at least like 20 seconds between player connect and drop
and as far as internal/external ip, your router should handle that for you
1) You have less than 512kbit (One half megabit) of UPSTREAM bandwidth.
2) You have a monthly transfer cap (One hour a day full load would use almost 7GB in a month, do the math for 8 hours)
turn your log detail up to 3 I guess...
mp_logdetail 3
here's what a connect/disconnect session looks like on my server............
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
L 01/23/2003 - 10:35:27: "I keel joo in joor eye<2><2771270><>" connected, addre
ss "4.42.187.100:27005"
L 01/23/2003 - 10:35:28: Server cvar "public_slots_free" = "11.000000"
L 01/23/2003 - 10:35:58: "I keel joo in joor eye<2><2771270><none>" entered the
game
L 01/23/2003 - 10:36:23: Server cvar "public_slots_free" = "12.000000"
L 01/23/2003 - 10:36:23: "I keel joo in joor eye<2><2771270><none>" disconnected
Dropped I keel joo in joor eye from server
Reason: Client sent 'drop'
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
you can clearly see the timestamp lapse of almost a full minute between the "connected" message and the "disconnected"
meaning that the client held an active connection for that amount of time, they weren't in the game until the "entered the game" message, but with general router frustrations I wouldn't care much about when they actually started playing as long as they actually maintained a connection for some reasonable amount of time
mabey ive got it wrong, when its a dedicated server, all i have is a little dos run program that lists stuff, when i type commands it doesn't do anything (im a complete n00b to this, so bear with me...)
turn your log detail up to 3 I guess...
mp_logdetail 3
here's what a connect/disconnect session looks like on my server............
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
L 01/23/2003 - 10:35:27: "I keel joo in joor eye<2><2771270><>" connected, addre
ss "4.42.187.100:27005"
L 01/23/2003 - 10:35:28: Server cvar "public_slots_free" = "11.000000"
L 01/23/2003 - 10:35:58: "I keel joo in joor eye<2><2771270><none>" entered the
game
L 01/23/2003 - 10:36:23: Server cvar "public_slots_free" = "12.000000"
L 01/23/2003 - 10:36:23: "I keel joo in joor eye<2><2771270><none>" disconnected
Dropped I keel joo in joor eye from server
Reason: Client sent 'drop'
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
you can clearly see the timestamp lapse of almost a full minute between the "connected" message and the "disconnected"
meaning that the client held an active connection for that amount of time, they weren't in the game until the "entered the game" message, but with general router frustrations I wouldn't care much about when they actually started playing as long as they actually maintained a connection for some reasonable amount of time<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
you get that same detail @ lvl 0
All that nice menu interface does for you is create the correct "commandline parameters" that you'll see admins talking about when starting up a server.
and that little dos box IS where you type commands, of course if you type a meaningless command it doesn't bother to tell you that :/
my version of HL is legal, but i lost my CD, so i havent installed it properly.... to run mods i have to start HL and switch to the mod, instead of just starting the mod (the dir is copied from an old hard drive..)
my version of HL is legal, but i lost my CD, so i havent installed it properly.... to run mods i have to start HL and switch to the mod, instead of just starting the mod (the dir is copied from an old hard drive..)
my version of HL is legal, but i lost my CD, so i havent installed it properly.... to run mods i have to start HL and switch to the mod, instead of just starting the mod (the dir is copied from an old hard drive..)
LOL, i hate that crap!
DOh, looks liekt he boards were too slow.....spam detected <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' valign='absmiddle' alt='biggrin.gif'><!--endemo-->
I suggest adding a line to your server.cfg as such:
ip XXX.XXX.XXX.XXX
Where XXX is the external IP on the outside of your firewall. Try that.
-Brendan
aka [OldF]SandTyger
I suggest adding a line to your server.cfg as such:
ip XXX.XXX.XXX.XXX
Where XXX is the external IP on the outside of your firewall. Try that.
-Brendan
aka [OldF]SandTyger<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
that has already been suggested and shot down. i know you are only trying to help but read before you post plz.
c:\path\to\hlds.exe -game ns +maxplayers XX + map ns_eclipse
that is the most basic "professional" way to start a DS. read the posts for more things to add.
---
@echo off
e:
cd \sierra\half-life\
start /high /wait E:\SIERRA\Half-Life\hlds.exe -game ns -nipx -nojoy +map ns_eclipse -maxplayers 16
cd \
Natselsvr.bat
---
Keep in mind that this is running on a Win2K box, which is why I have the "start /high /wait" params in before the hlds command.
This also means that if the server crashes out for some reason...it'll auto restart. =)
-Brendan
aka [OldF]SandTyger
RTFM your router manual.....
game and maxplayers must be set when you run hlds; they can't be changed after it's already running.