gamedig / node-gamedig

Query game servers and not only! Node.JS/Deno/Bun or Bash (via the CLI).
https://www.npmjs.com/package/gamedig
MIT License
606 stars 146 forks source link

Port doesnt work. #144

Closed kkm closed 5 years ago

kkm commented 5 years ago

https://www.battlemetrics.com/servers/ark/2816739 says game port is 7781

const Gamedig = require('gamedig');
Gamedig.query({
  type: 'arkse',
  host: '5.101.166.201',
  port: "7781"
}).then((state) => {
  console.log(state);
}).catch((error) => {
  console.log("Server is offline", error);
});

It does not work right.

xcpep commented 5 years ago

If you query the server using the port "27019" which is the query port then it will return the servers data.

kkm commented 5 years ago

Thanks.