Skip to content

MaygoDev/minecraft-ping-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Server Ping (Go)

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.


Features

  • 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

Usage

1. Clone the repo

git clone https://github.com/MaygoDev/minecraft-ping-go.git
cd minecraft-ping-go

2. Run the program

go run main.go

By default, it pings Hypixel (mc.hypixel.net:25565). You can change the server address in main.go:

response, err := ping("yourserver.com", 25565)

References


License

MIT

About

Ping minecraft server in Golang.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages