A lightweight Go program that pings a Minecraft server using the vanilla TCP protocol (compatible with protocol version 47 / Minecraft 1.8.9). It sends a handshake and status request, then prints the raw JSON response from the server.
- Connects directly to a Minecraft server using TCP
- Sends a handshake and status request (
0x00) - Reads and prints the raw JSON server response
- No external dependencies
git clone https://github.com/MaygoDev/minecraft-ping-go.git
cd minecraft-ping-gogo run main.goBy default, it pings Hypixel (mc.hypixel.net:25565). You can change the server address in main.go:
response, err := ping("yourserver.com", 25565)- Minecraft Server List Ping (wiki.vg)
- Go
netpackage documentation - Socket programming in Go (Medium - viktordev)
- Minecraft Wiki: wiki.vg merge project
- MaygoDev/minecraft-ping (GitHub)