I'm making a simple mojang-api-based on powershell and I'm trying to know if there is any native way to ping/get status of aminecraft minecraft server. Until now I found that: [System.Net.Dns]::GetHostAddresses("mc.hypixel.net")[0].IPAddressToString
can resolve an adress to 209.222.115.37
, When I try to ping it with a simple ping 209.222.115.37
or ping mc.hypixel.net
cannot connect to the server. So I tried with telnet 209.222.115.37 25565
or telnet mc.hypixel.net 25565
than It waits a little bit and than losts connection. I'm thinking if It's just some minecraft server(but I don't think so, because when I do it on my own server with localhost, same error with telnet, but works with ping)... Can someone tell me if there is any other way to do it by ping it(maybe sending special packets to make the server responde?)
PS: I found this reddit that explains very good how does connection to a minecraft server work.