Server query code

saintksaintk Join Date: 2010-07-27 Member: 73196Members
Hi,

Is there any information availible on how to externally query the gameserver for data such as player name, current played map and current player numbers?

Cheers,

Comments

  • devicenulldevicenull Join Date: 2003-04-30 Member: 15967Members, NS2 Playtester, Squad Five Blue
    It's the standard A2S queries, just on port 27016.

    Pretty sure you know how to get ahold of me if you can't figure it out ;)
  • saintksaintk Join Date: 2010-07-27 Member: 73196Members
    Thanks for your reply. I can query the server running on 85.17.60.103:27016, but i can't query the server on 85.17.102.2:27016, which is on the same machine. It seems in the Alpha port 27016 binds to 0.0.0.0 instead of the server's IP so the first server to boot gets the port. Is there any way i could work around that?

    Cheers,
  • PlasmaPlasma Join Date: 2003-04-26 Member: 15855Members, Constellation, Squad Five Blue
    It would be good if the query port was the same as the server join port, like other games that use the Source query protocol.
  • msleepermsleeper Join Date: 2009-10-13 Member: 69034Members
    I think there is a problem in general with the game not allowing you to use more than the 27015/27016 ports. I do agree that having the same client and query ports would be really great.
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    Thanks for pointing this out.
Sign In or Register to comment.