Jump to content

Detect if a server is up


felisphasma

Recommended Posts

Detect if a server is up

Hey,

I'm trying to find a way to detect if a server is up.

I have tried two things so far to detect server status: 1) connecting to the server with a udp socket and 2) sending some data and listening for a response. Unfortunately I have not had any luck yet.

Anyone know of a good way of detecting if an ark server is online?

Ty

Link to comment
Share on other sites

9 hours ago, Larkfields said:

Enable RCON on the server, then try connecting to RCON.  Note that RCON uses TCP.

I modified this one for use with my server.
https://gist.github.com/pihril/7aa490915b4cd3b3a3105eb85fa97bc0

I was hoping for a more elegant solution, however this will do the job! Cheers!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...