mgerb / ServerStatus

A Discord bot to display the status of servers.
https://hub.docker.com/r/mgerb/server-status
76 stars 16 forks source link

ark server status #3

Closed Kruoth closed 4 years ago

Kruoth commented 7 years ago

i am trying to get your bot to work with on ark server i play on but it says the servers are offline i put the correct ip and port number

mgerb commented 7 years ago

I couldn't tell you, I'm going to need more information than that.

Kruoth commented 7 years ago

i filled in config.json with my servers IP and port number and ran serverstatus exe and each time the bot in chat says the server offline when the server is running

CattoGamer commented 7 years ago

Ark uses the ICMP protocol this isn't supported by ServerStatus

mgerb commented 7 years ago

This seems to be the case. I used this library and I just did some testing and can confirm it does not work with Ark servers, whereas I was to see the port open with nmap. I may look into this in the future, but for now I'm going to consider this case closed.

CattoGamer commented 7 years ago

anvie's Port Scanner library is limited to TCP only.

SirCaveman commented 7 years ago

It's working like a charm for me for months already.... have 2 ARK servers running and using discord bot to notify me when server is up or down...

mgerb commented 7 years ago

Interesting. I tested a few public Ark servers yesterday and it showed both of them as being down. I'll reopen the case. I haven't had much time lately to look into this, but if anyone wants to open a PR feel free.

CattoGamer commented 7 years ago

What port did you use?

SirCaveman commented 7 years ago

I'm using the RCON ports, others don't seem to work properly...

CattoGamer commented 7 years ago

I would not recommend using the RCON port. The Ark server might detect strange activities and could even block the IP.

Kruoth commented 7 years ago

i got it working using the rcon port is there anyway to increase how offen it checks like every 30secs or so?

mgerb commented 7 years ago

It pings the servers every 5 seconds. I may add this as a configuration option later.

fantoms commented 7 years ago

cace1d40 seems to work okay for steam games including Ark, used github.com/kidoman/go-steam.