Setting Up A Ns Server

ImpactDNIImpactDNI 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?
«1

Comments

  • nederlandernederlander Join Date: 2003-01-06 Member: 11911Members
    edited January 2003
    i do know that u have to set your router up like something, il look ot up 4 u

    [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
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--nederlander+Jan 24 2003, 02:29 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (nederlander @ Jan 24 2003, 02:29 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->i do know that u have to set your router up like something, il look ot up 4 u

    [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
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    #1, explain where i do these commands?
    #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
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    This is another thing on that, does it matter if i am running a DHCP server? should that be enabled or disabled?
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--nederlander+Jan 24 2003, 10:29 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (nederlander @ Jan 24 2003, 10:29 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Outgoing UDP to remote destination 27010, 27012.
    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.
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    as far as i know, no one has actually played on my server.. they just keep connecting/dropping
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    when my server boots up, it reads Server IP Address 192.168.123.139:27015, thats my internal IP, when it links to the outside world, wont i be able to have it say the real IP?
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited January 2003
    <!--QuoteBegin--ImpactDNI+Jan 24 2003, 10:52 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ImpactDNI @ Jan 24 2003, 10:52 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->as far as i know, no one has actually played on my server.. they just keep connecting/dropping<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    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
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    how do i check that? the only time it writes anything down is when someone drops
  • GuspazGuspaz Join Date: 2002-11-01 Member: 2862Members, Constellation
    Depending on your cable line, you shouldn't be hosting a server on it. You should not host a server if:

    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)
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    no transfer cap, 512k uplaod i got..
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--ImpactDNI+Jan 24 2003, 10:55 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ImpactDNI @ Jan 24 2003, 10:55 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->how do i check that? the only time it writes anything down is when someone drops<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    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
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    where do i run the commands in a dedicated server?
    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...)
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--[WHO]Them+Jan 24 2003, 03:09 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([WHO]Them @ Jan 24 2003, 03:09 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--ImpactDNI+Jan 24 2003, 10:55 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ImpactDNI @ Jan 24 2003, 10:55 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->how do i check that? the only time it writes anything down is when someone drops<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    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
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    mabey im running the server incorrectly... i start HL, change the mod to NS, go to internet games, then "create" then click dedicated server.... and use that... it closes NS and leaves the little msDos run thing... I feel like a flaming retard =P
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    that's not the *wrong* way, it's just not the professional way.

    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 :/
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    edited January 2003
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    and whats the "professional" way to start it?
    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..)
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    and whats the "professional" way to start it?
    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..)
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    and whats the "professional" way to start it?
    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..)
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--SuicideDog+Jan 24 2003, 03:34 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SuicideDog @ Jan 24 2003, 03:34 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->THEM BEAT ME!!<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    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-->
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    so can anyone fill me in on the "professional" way to start the server?
  • SandTygerSandTyger Join Date: 2002-11-02 Member: 3868Members
    I run an NS server in a simular situation. The server is setup behind a firewall and there is NAT involved.

    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
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--SandTyger+Jan 24 2003, 03:50 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SandTyger @ Jan 24 2003, 03:50 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I run an NS server in a simular situation. The server is setup behind a firewall and there is NAT involved.

    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.
  • SandTygerSandTyger Join Date: 2002-11-02 Member: 3868Members
    Here's my batch file for my server:
    ---
    @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
  • B4rK0d3B4rK0d3 Join Date: 2002-11-04 Member: 6894Members
    I'm having the same problem, except nobody can connect to my server at all! I can connect to it from a different computer (which is on the same LAN), and I have no idea what's wrong. "sv_lan" is set to "0" also, so it can't be that. Feh.
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    Basically all i need to know is how to use port forwarding.... is it router specific? is there a place to do it? if so how???
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--ImpactDNI+Jan 25 2003, 12:03 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ImpactDNI @ Jan 25 2003, 12:03 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Basically all i need to know is how to use port forwarding.... is it router specific? is there a place to do it? if so how???<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    RTFM your router manual.....
  • ImpactDNIImpactDNI Join Date: 2003-01-24 Member: 12670Members
    also, why when im running HLDS do none of those commands DO anything? i do -game ns and it just sits there... or +maxplayers 20, it doesn't change the 0/6 connected at the top...
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    <!--QuoteBegin--ImpactDNI+Jan 24 2003, 11:09 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ImpactDNI @ Jan 24 2003, 11:09 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->also, why when im running HLDS do none of those commands DO anything? i do -game ns and it just sits there... or +maxplayers 20, it doesn't change the 0/6 connected at the top...<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    game and maxplayers must be set when you run hlds; they can't be changed after it's already running.
Sign In or Register to comment.