/mcping

Minecraft Server List Ping tool

Primary LanguageCMIT LicenseMIT

MC Ping

Query minecraft server via SLP (Server Listing Ping) to retrieve basic information (motd, player count, max players...)

Usage

mcping [--help] [--host <host>] [--port <port>] [--protocol <protocol number>] [--timeout <timeout seconds>]

Host can be IP address or hostname.

Prints json data sent by server to stdout.

Example

mcping --host play.cubecraft.net --port 25565 --protocol 47
{"version":{"name":"§f","protocol":340},"players":{"max":2000,"online":152,"sample":[{"name":"§4§k||§9§lCubeCraft§4§k||","id":"00000000-0000-0000-0000-000000000000"},{"name":"§6Forums §f\u003e cubecraft.net","id":"00000000-0000-0000-0000-000000000000"},{"name":"§6Rules §f\u003e cubecraft.net/rules","id":"00000000-0000-0000-0000-000000000000"},{"name":"§6Discord §f\u003e discord.gg/cubecraft","id":"00000000-0000-0000-0000-000000000000"},{"name":"§6Store §f\u003e store.cubecraft.net","id":"00000000-0000-0000-0000-000000000000"},{"name":"§6Twitter §f\u003e twitter.com/CubeCraftGames","id":"00000000-0000-0000-0000-000000000000"}]},"description":{"text":"§f               §f◀ §3§lCubeCraft Games§3 [AS] §f▶\n§f  §c§k/§6§lEGGWARS UPDATE!§c§k/§f §7§l\u003e§f §dNew Perks, Voting \u0026 More!§f"},"favicon":"data:image/png;base64,...","modinfo":{"type":"FML","modList":[]}}

Installation

Download binary or build from source and run.

Build from source

Linux

Run make

License

MIT License

Copyright (c) 2016 theodik