Can't make my own server work, help please

SeraphaceSeraphace Join Date: 2011-04-26 Member: 95644Members
I looked through the tutorial page etc for hosting your own server and got it set up for the most part. I'm using the technique of creating the shortcut and changing the parameters of target with -ip etc.

""C:\Program Files (x86)\Steam\steamapps\common\natural selection 2\Server.exe" -name TorontoHost NS2 Battlezone -map ns2_tram -limit 8 -lan false"

This is what it is currently set to. If I put in -ip 192.168.0.xx (My current address on the lan) I can't seem to connect to the game. If I leave it out I can connect, but I can't confirm if anybody else can join it (Nobody has thus far). I currently have myself set to DMZ for ease of access atm, so it shouldn't be port based unless I have to configure something special with the server.

Also, there's apparently supposed to be a server.xml on my computer for the server, but try as I might, I can't find it on my computer. Is there a reason for this? The only way i seem to be able to modify how the server runs is with the shortcut target method.

Any help would be greatly appreciated, thanks!

Comments

  • IvoryBrownIvoryBrown Join Date: 2011-04-30 Member: 96396Members
    Same thing happens to me, I am trying hard to get solution.
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    My server.xml file is located in:
    C:\Users\endar\AppData\Roaming\Natural Selection 2

    Contents are:

    <options>
    <lanGame>false</lanGame>
    <mapName>ns2_tram</mapName>
    <password></password>
    <port>27015</port>
    <serverName>Australia-Pure NS2</serverName>
    <address></address>
    <playerLimit>16</playerLimit>
    </options>


    I don't use any form of NAT though, the ip of the server on the internet is the real address, so not sure what differences you would have.
  • SeraphaceSeraphace Join Date: 2011-04-26 Member: 95644Members
    From what I found I'm supposed to use the local IP, or it doesn't bind or something
  • PhYzorPhYzor Join Date: 2003-10-26 Member: 22005Members, Constellation, Reinforced - Shadow
    edited April 2011
    do you see the process Server.exe with : netstat -b

    ?
  • PhYzorPhYzor Join Date: 2003-10-26 Member: 22005Members, Constellation, Reinforced - Shadow
    With the software CurrPorts (http://www.nirsoft.net/utils/cports.html) i can see the port about NS2 they are not open or close or listen..., with netstat i can see only for the web :

    [server.exe]
    TCP 127.0.0.1:57679 genuine:8080 ESTABLISHED


    Ecoute it's : Listen
    Connexion Etablie it's : Connection Estblished
    <img src="http://marfainga.free.fr/ns2%20port.png" border="0" class="linked-image" />

    so the problem it's Server.exe don't listen on port... what i can do ?
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    That looks alright to me. You have to remember UDP-connections are stateless, and cannot be labeled as 'Established' or such.
  • PhYzorPhYzor Join Date: 2003-10-26 Member: 22005Members, Constellation, Reinforced - Shadow
    player can you explain to me how do you do ?
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    It looks like you've already got it working correctly. Here's a print-out of my own:
    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Proto Local Address Foreign Address State
    TCP 0.0.0.0:8080 -:0 LISTENING
    UDP 0.0.0.0:8766 *:*
    UDP 0.0.0.0:27015 *:*
    UDP 0.0.0.0:27016 *:*<!--QuoteEnd--></div><!--QuoteEEnd-->
    As you can see it's identical to yours, so there shouldn't be any problem.
  • FehaFeha Join Date: 2006-11-16 Member: 58633Members
    If you need help with testing if others can join the server (anyone, not just author of this thread), feel free to add me on steam (feha92), and ill try to connect to the server if I have time.
    I know myself how annoying it is when you need to test stuff but dont know if it doesnt work or if ppl just wont try to join.

    Just remember to make it easy for me to find the server, cant find by ip in ns2 afaik, maybe connect to the ip trough console tho?
    Thats also something that you should test anyway, see if the server connects to the master list, or if its joinable but not in the list.
  • PhYzorPhYzor Join Date: 2003-10-26 Member: 22005Members, Constellation, Reinforced - Shadow
    <!--quoteo(post=1843412:date=Apr 30 2011, 02:50 PM:name=player)--><div class='quotetop'>QUOTE (player @ Apr 30 2011, 02:50 PM) <a href="index.php?act=findpost&pid=1843412"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->It looks like you've already got it working correctly. Here's a print-out of my own:

    As you can see it's identical to yours, so there shouldn't be any problem.<!--QuoteEnd--></div><!--QuoteEEnd-->


    NO i have this :

    UDP 192.168.1.100:8766 *:*
    UDP 192.168.1.100:27015 *:*
    UDP 192.168.1.100:27016 *:*


    It's same ?
  • PhYzorPhYzor Join Date: 2003-10-26 Member: 22005Members, Constellation, Reinforced - Shadow
    it's ok for me, it was a problem with NAT

    My server : Test_Server_FR

    can you come to test my server ?
Sign In or Register to comment.