Recent Discussions

server status API

Open in Discord
Unanswered
ilay01 posted this in #questions
15 messages
0 views
hello, I have a bedrock server running on my old laptop using Debian CasaOS and Crafty for me and my friends.
I'm trying to make a little cool website that displays the status of the Minecraft server using mcstatus.io's API so anyone can know how many players are on the server etc but I'm encountering a problem.

sometimes the API randomly returns a "server is offline" status even though it is online and accessible, and even when there are players playing.
I was frequently checking on their website itself to see if it displays correctly, but it's the same there, sometimes shows offline for some reason.
I've used more services to check the status of my server and they do too sometimes show offline like mcstatus.io.
so I think it's a problem with how my Debian machine interacts with sending the status over to different API's, maybe a network configuration thing, any help?
Asian black bear
I don’t have experience with Crafty but could you share your server.properties ?

Also, if all your friends use Discord, you could alternatively setup something like DiscordSRV
@Asian black bear I don’t have experience with Crafty but could you share your server.properties ?

Also, if all your friends use Discord, you could alternatively setup something like DiscordSRV
here is the file, yeah i know i could set up DiscordSRV, but a web page is a sort of passion project for fun and to learn
server.properties
Download
Asian black bear
Oh I missed where you said “Bedrock”, I have no experience with Bedrock servers beyond using Geyser+Floodgate
If different status APIs all show your server as offline simultaneously, it’s your server’s fault.

If different status APIs show your server as offline at different times (not simultaneously), you could try using different APIs. If the first request shows offline, try the secondary API
@ilay01 seems to happen at the same time with 2 different api's
Asian black bear
Unfortunately that almost certainly means extra work for you 😭
Asian black bear
My Java server had an issue where one status API would show as offline when it was online, and other status APIs weren’t cached so they’d show correct data. I solved it very simply how I described above but considering multiple APIs simultaneously return your server as offline that’s definitely a bigger issue
it does seem like a config thing, because when i use websites like canyouseeme to check if my port is visible it always returns closed even tough it is accessible
Asian black bear
Very likely networking/firewall related
@ilay01 it does seem like a config thing, because when i use websites like canyouseeme to check if my port is visible it always returns closed even tough it is accessible
American black bear
closed means EITHER that the port is blocked OR that the server (or anything else) wasn't running on that port
@American black bear closed means EITHER that the port is blocked OR that the server (or anything else) wasn't running on that port
It is running and the server is accessible, I’ve checked when I was playing with friends outside of my network as well ofc
@ilay01 It is running and the server is accessible, I’ve checked when I was playing with friends outside of my network as well ofc
American black bear
canyouseeme is probably checking tcp so it should always say closed
Google a udp port checker
Loading...