<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AJava_Edition_protocol%2FServer_List_Ping</id>
	<title>Minecraft:Java Edition protocol/Server List Ping - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AJava_Edition_protocol%2FServer_List_Ping"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Java_Edition_protocol/Server_List_Ping&amp;action=history"/>
	<updated>2026-06-15T17:30:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Java_Edition_protocol/Server_List_Ping&amp;diff=143950&amp;oldid=prev</id>
		<title>SyncBot: Sync: new page from Minecraft</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Java_Edition_protocol/Server_List_Ping&amp;diff=143950&amp;oldid=prev"/>
		<updated>2026-06-14T11:12:10Z</updated>

		<summary type="html">&lt;p&gt;Sync: new page from Minecraft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Server List Ping&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;SLP&amp;#039;&amp;#039;&amp;#039;) is an interface provided by Minecraft servers which supports querying the MOTD, player count, max players and server version via the usual port. SLP is part of the [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol|protocol]], but it can be disabled. The Notchian client uses this interface to display the multiplayer server list, hence the name. The SLP process changed in [[Minecraft:Java Edition 1.7]] in a non-backwards compatible way, but modern clients and servers still support both the [[#Current|new]] and [[#1.6|old]] process.&lt;br /&gt;
&lt;br /&gt;
== Current (1.7+) ==&lt;br /&gt;
&lt;br /&gt;
This uses the regular client-server protocol. For the general packet format, see the [[Minecraft:Java Edition protocol/Packets|packets]] article.&lt;br /&gt;
&lt;br /&gt;
=== Handshake ===&lt;br /&gt;
&lt;br /&gt;
First, the client sends a [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Handshake|Handshake]] packet with its state set to 1.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
 ! Packet ID&lt;br /&gt;
 ! Field Name&lt;br /&gt;
 ! Field Type&lt;br /&gt;
 ! Notes&lt;br /&gt;
 |-&lt;br /&gt;
 |rowspan=&amp;quot;4&amp;quot;| 0x00&lt;br /&gt;
 | Protocol Version&lt;br /&gt;
 | {{Type|VarInt}}&lt;br /&gt;
 | See [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol version numbers|protocol version numbers]]. The version that the client plans on using to connect to the server (which is not important for the ping). If the client is pinging to determine what version to use, by convention &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt; should be set.&lt;br /&gt;
{{Warning|Setting invalid (nonexistent) version as the protocol version &amp;lt;i&amp;gt;might&amp;lt;/i&amp;gt; cause some servers to close connection after this packet}}&amp;lt;br/&amp;gt;&lt;br /&gt;
{{Warning|See [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol version numbers|Protocol version numbers]] for a list of valid protocol versions.}}&lt;br /&gt;
 |-&lt;br /&gt;
 | Server Address&lt;br /&gt;
 | {{Type|String}}&lt;br /&gt;
 | Hostname or IP, e.g. localhost or 127.0.0.1, that was used to connect. The Notchian server does not use this information. Note that SRV records are a complete redirect, e.g. if _minecraft._tcp.example.com points to mc.example.org, users connecting to example.com will provide mc.example.org as server address in addition to connecting to it.&lt;br /&gt;
 |-&lt;br /&gt;
 | Server Port&lt;br /&gt;
 | {{Type|Unsigned Short}}&lt;br /&gt;
 | Default is 25565. The Notchian server does not use this information.&lt;br /&gt;
 |-&lt;br /&gt;
 | Next state&lt;br /&gt;
 | {{Type|VarInt}}&lt;br /&gt;
 | 1 for [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Status|status]], 2 for [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Login|login]], 3 for [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Login|transfer]]&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
=== Status Request ===&lt;br /&gt;
&lt;br /&gt;
The client follows up with a [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Status Request|Status Request]] packet. This packet has no fields.&lt;br /&gt;
The client is also able to skip this part entirely and send a [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Ping Request|Ping Request]] instead.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
 ! Packet ID&lt;br /&gt;
 ! Field Name&lt;br /&gt;
 ! Field Type&lt;br /&gt;
 ! Notes&lt;br /&gt;
 |-&lt;br /&gt;
 | 0x00&lt;br /&gt;
 |colspan=&amp;quot;3&amp;quot;| &amp;#039;&amp;#039;no fields&amp;#039;&amp;#039;&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
=== Status Response ===&lt;br /&gt;
&lt;br /&gt;
The server should respond with a [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Status Response|Status Response]] packet. Note that Notchian servers will for unknown reasons wait to receive the following [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Ping Request|Ping Request]] packet for 30 seconds before timing out and sending Response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
 ! Packet ID&lt;br /&gt;
 ! Field Name&lt;br /&gt;
 ! Field Type&lt;br /&gt;
 ! Notes&lt;br /&gt;
 |-&lt;br /&gt;
 | 0x00&lt;br /&gt;
 | JSON Response&lt;br /&gt;
 | {{Type|String}}&lt;br /&gt;
 | See below; as with all strings this is prefixed by its length as a VarInt(3-byte max)&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
The JSON Response field is a [[Minecraft:wikipedia:JSON|JSON]] object which has the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;version&amp;quot;: {&lt;br /&gt;
        &amp;quot;name&amp;quot;: &amp;quot;1.21.8&amp;quot;,&lt;br /&gt;
        &amp;quot;protocol&amp;quot;: 772&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;players&amp;quot;: {&lt;br /&gt;
        &amp;quot;max&amp;quot;: 20,&lt;br /&gt;
        &amp;quot;online&amp;quot;: 1,&lt;br /&gt;
        &amp;quot;sample&amp;quot;: [&lt;br /&gt;
            {&lt;br /&gt;
                &amp;quot;name&amp;quot;: &amp;quot;thinkofdeath&amp;quot;,&lt;br /&gt;
                &amp;quot;id&amp;quot;: &amp;quot;4566e69f-c907-48ee-8d71-d7ba5aa00d20&amp;quot;&lt;br /&gt;
            }&lt;br /&gt;
        ]&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;description&amp;quot;: {&lt;br /&gt;
        &amp;quot;text&amp;quot;: &amp;quot;Hello, world!&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;favicon&amp;quot;: &amp;quot;data:image/png;base64,&amp;lt;data&amp;gt;&amp;quot;,&lt;br /&gt;
    &amp;quot;enforcesSecureChat&amp;quot;: false&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;name&amp;#039;&amp;#039; field of the &amp;#039;&amp;#039;version&amp;#039;&amp;#039; object should be considered mandatory. On newer Notchian client versions (1.20+?), it may be omitted and will be treated as though it were the string &amp;quot;Old&amp;quot; if so.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;description&amp;#039;&amp;#039; field is optional. If specified, it should be a [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Text formatting#Text components|text component]]. Note that the Notchian server has no way of providing actual text component data; instead section sign-based codes are embedded within the text of the object. However, third-party servers such as Spigot and Paper will return full components, so make sure you can handle both.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;favicon&amp;#039;&amp;#039; field is optional. If specified, it should be a [[Minecraft:wikipedia:Portable Network Graphics|PNG]] image that is [[Minecraft:wikipedia:Base64|Base64]] encoded (newlines (&amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt;) are no longer supported since 1.13) and prepended with &amp;lt;code&amp;gt;data:image/png;base64,&amp;lt;/code&amp;gt;. It should also be noted that the source image must be exactly 64x64 pixels, otherwise the Notchian client will not render the image.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;players&amp;#039;&amp;#039; field is optional. If omitted, &amp;quot;???&amp;quot; will be displayed in dark grey in place of the player count.&lt;br /&gt;
&lt;br /&gt;
The numbers &amp;#039;&amp;#039;max&amp;#039;&amp;#039; and &amp;#039;&amp;#039;online&amp;#039;&amp;#039; in the players field have a maximum supported value of 2&amp;lt;sup&amp;gt;31&amp;lt;/sup&amp;gt;-1 (2,147,483,647) by the vanilla Minecraft server. Larger values were observed to be set to the default value of 20.&lt;br /&gt;
&lt;br /&gt;
If the &amp;#039;&amp;#039;sample&amp;#039;&amp;#039; field of the &amp;#039;&amp;#039;players&amp;#039;&amp;#039; object is present, the player names (but not their UUIDs) will be shown in order in the tooltip when hovering over the player count (or version name if incompatible). If empty, missing, or the wrong type, no tooltip will appear. Notchian servers will omit this field if there are no players on the server or if &amp;lt;code&amp;gt;hide-online-players&amp;lt;/code&amp;gt; is false. There doesn&amp;#039;t appear to be a hard limit on how many players may be specified.&lt;br /&gt;
&lt;br /&gt;
If a client [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Client_Information_.28configuration.29|has &amp;quot;Allow Server Listings&amp;quot; set to &amp;quot;OFF&amp;quot;]], Notchian servers will report their name as &amp;quot;Anonymous Player&amp;quot; and UUID as &amp;quot;00000000-0000-0000-0000-000000000000&amp;quot;. This is not reliable; making a request before the player has fully joined may cause their choice to not be respected.&lt;br /&gt;
&lt;br /&gt;
On most Notchian client versions, UUIDs are mandatory and must be well formed even though it is unused by Notchian clients. Newer versions (1.20+?) will tolerate malformed or missing UUIDs and act as though &amp;#039;&amp;#039;sample&amp;#039;&amp;#039; was omitted if so.&lt;br /&gt;
&lt;br /&gt;
If the server has No Chat Reports installed and hasn&amp;#039;t disabled this feature, an additional field &amp;#039;&amp;#039;preventsChatReports&amp;#039;&amp;#039; will be added to the end with a value of true causing clients with No Chat Reports to display an icon indicating the server is a &amp;quot;Safe Server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
After receiving the Response packet, the client may send the next packet to help calculate the server&amp;#039;s latency, or if it is only interested in the above information it can disconnect here.&lt;br /&gt;
&lt;br /&gt;
If the client does not receive a properly formatted response (e.g. a field is missing or the wrong type), it will close the socket and instead attempt a [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Server_List_Ping#1.6|legacy ping]].&lt;br /&gt;
&lt;br /&gt;
=== Ping Request ===&lt;br /&gt;
&lt;br /&gt;
If the process is continued, the client will now send a [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Ping Request|Ping Request]] packet containing some payload which is not important.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
 ! Packet ID&lt;br /&gt;
 ! Field Name&lt;br /&gt;
 ! Field Type&lt;br /&gt;
 ! Notes&lt;br /&gt;
 |-&lt;br /&gt;
 | 0x01&lt;br /&gt;
 | Payload&lt;br /&gt;
 | {{Type|Long}}&lt;br /&gt;
 | May be any number. Notchian clients use a system-dependent time value which is counted in milliseconds.&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
=== Pong Response ===&lt;br /&gt;
&lt;br /&gt;
The server will respond with the [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol#Pong Response|Pong Response]] packet and then close the connection.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
 ! Packet ID&lt;br /&gt;
 ! Field Name&lt;br /&gt;
 ! Field Type&lt;br /&gt;
 ! Notes&lt;br /&gt;
 |-&lt;br /&gt;
 | 0x01&lt;br /&gt;
 | Payload&lt;br /&gt;
 | {{Type|Long}}&lt;br /&gt;
 | Should be the same as sent by the client&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
=== Ping via LAN (Open to LAN in Singleplayer) ===&lt;br /&gt;
&lt;br /&gt;
In Singleplayer there is a function called &amp;quot;Open to LAN&amp;quot;. Minecraft (in the serverlist) binds a UDP port and listens for connections to &amp;lt;code&amp;gt;224.0.2.60:4445&amp;lt;/code&amp;gt; (Yes, that is the actual IP, no matter in what network you are or what your local IP Address is). If you click on &amp;quot;Open to LAN&amp;quot; Minecraft sends a packet every 1.5 seconds to the address: &amp;lt;code&amp;gt;[MOTD]{motd}[/MOTD][AD]{port}[/AD]&amp;lt;/code&amp;gt;. Minecraft seems to check for the following Strings: &amp;lt;code&amp;gt;[MOTD]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[/MOTD]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[AD]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[/AD]&amp;lt;/code&amp;gt;. Anything you write outside of each of the tags will be ignored. Color codes may be used in the MOTD. Between &amp;lt;code&amp;gt;[AD]&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;[/AD]&amp;lt;/code&amp;gt; is the server&amp;#039;s port. If it is not numeric, 25565 will be used. If it is out of range, an error will be displayed when trying to connect. The IP Address is the same as the sender&amp;#039;s one. The string is encoded with UTF-8.&lt;br /&gt;
&lt;br /&gt;
To implement it server side, just send a packet with the text (payload) to &amp;lt;code&amp;gt;224.0.2.60:4445&amp;lt;/code&amp;gt;. If you are client side, bind a UDP socket and listen for connections. You can use a &amp;lt;code&amp;gt;MulticastSocket&amp;lt;/code&amp;gt; for that.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
* [https://gist.github.com/csh/2480d14fbbb33b4bbae3 C#]&lt;br /&gt;
* [https://gist.github.com/zh32/7190955 Java]&lt;br /&gt;
* [https://github.com/Aliorpse/mcutils Kotlin Multiplatform]&lt;br /&gt;
* [https://gist.github.com/1209061 Python]&lt;br /&gt;
* [https://github.com/Duckulus/mc-honeypot Rust (Server)]&lt;br /&gt;
* [https://github.com/Sch8ill/MCClient-lib MCClient-lib (Python3)]&lt;br /&gt;
* [https://gist.github.com/ewized/97814f57ac85af7128bf Python3]&lt;br /&gt;
* [https://github.com/xPaw/PHP-Minecraft-Query PHP]&lt;br /&gt;
* [https://gitlab.bixilon.de/bixilon/minosoft/-/blob/43d8988ef94b6487e4da0218d87cf66ccf14a1ea/src/main/java/de/bixilon/minosoft/protocol/protocol/LANServerListener.java LAN Server Listener (Java)]&lt;br /&gt;
* [https://gitlab.bixilon.de/bixilon/minosoft/-/blob/master/src/main/java/de/bixilon/minosoft/protocol/protocol/LANServerListener.kt LAN Server Listener (Kotlin)]&lt;br /&gt;
* [https://github.com/stackotter/delta-client/blob/main/Sources/Core/Sources/Network/LANServerEnumerator.swift Swift]&lt;br /&gt;
* [https://github.com/dreamscached/minequery Go]&lt;br /&gt;
* [https://github.com/Sch8ill/mclib Go]&lt;br /&gt;
* [https://github.com/PauldeKoning/minecraft-server-handshake Node.js]&lt;br /&gt;
* [https://github.com/LhAlant/MinecraftSLP/ C]&lt;br /&gt;
* [https://github.com/mcstatus-io/mcutil/ Go]&lt;br /&gt;
* [https://github.com/elochkaan-git/pingshaft C++]&lt;br /&gt;
&lt;br /&gt;
== 1.6 ==&lt;br /&gt;
&lt;br /&gt;
This uses a protocol which is compatible with the client-server protocol as it was before the Netty rewrite. Modern servers recognize this protocol by the starting byte of &amp;lt;code&amp;gt;fe&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Client to server ===&lt;br /&gt;
&lt;br /&gt;
The client initiates a TCP connection to the server on the standard port. Instead of doing auth and logging in (as detailed in [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol|Protocol]] and [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol Encryption|Protocol Encryption]]), it sends the following data, expressed in hexadecimal:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;FE&amp;lt;/code&amp;gt; — packet identifier for a server list ping&lt;br /&gt;
# &amp;lt;code&amp;gt;01&amp;lt;/code&amp;gt; — server list ping&amp;#039;s payload (always 1)&lt;br /&gt;
# &amp;lt;code&amp;gt;FA&amp;lt;/code&amp;gt; — packet identifier for a plugin message&lt;br /&gt;
# &amp;lt;code&amp;gt;00 0B&amp;lt;/code&amp;gt; — length of following string, in [https://www.unicode.org/glossary/#code_unit code units], as a short (always 11)&lt;br /&gt;
# &amp;lt;code&amp;gt;00 4D 00 43 00 7C 00 50 00 69 00 6E 00 67 00 48 00 6F 00 73 00 74&amp;lt;/code&amp;gt; — the string &amp;lt;code&amp;gt;MC|PingHost&amp;lt;/code&amp;gt; encoded as a [[Minecraft:wikipedia:UTF-16|UTF-16BE]] string&lt;br /&gt;
# &amp;lt;code&amp;gt;XX XX&amp;lt;/code&amp;gt; — length of the rest of the data, as a short. Compute as &amp;lt;code&amp;gt;7 + len(hostname)&amp;lt;/code&amp;gt;, where &amp;lt;code&amp;gt;len(hostname)&amp;lt;/code&amp;gt; is the number of bytes in the UTF-16BE encoded hostname.&lt;br /&gt;
# &amp;lt;code&amp;gt;XX&amp;lt;/code&amp;gt; — [[Minecraft:Minecraft Wiki:Projects/wiki.vg merge/Protocol version numbers#Versions before the Netty rewrite|protocol version]], e.g. &amp;lt;code&amp;gt;4a&amp;lt;/code&amp;gt; for the last version (74)&lt;br /&gt;
# &amp;lt;code&amp;gt;XX XX&amp;lt;/code&amp;gt; — length of following string, in [https://www.unicode.org/glossary/#code_unit code units], as a short&lt;br /&gt;
# &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt; — hostname the client is connecting to, encoded as a UTF-16BE string&lt;br /&gt;
# &amp;lt;code&amp;gt;XX XX XX XX&amp;lt;/code&amp;gt; — port the client is connecting to, as an int.&lt;br /&gt;
&lt;br /&gt;
All data types are big-endian.&lt;br /&gt;
&lt;br /&gt;
Example packet dump:&lt;br /&gt;
&lt;br /&gt;
 0000000: fe01 fa00 0b00 4d00 4300 7c00 5000 6900  ......M.C.|.P.i.&lt;br /&gt;
 0000010: 6e00 6700 4800 6f00 7300 7400 1949 0009  n.g.H.o.s.t..I..&lt;br /&gt;
 0000020: 006c 006f 0063 0061 006c 0068 006f 0073  .l.o.c.a.l.h.o.s&lt;br /&gt;
 0000030: 0074 0000 63dd                           .t..c.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note: &amp;#039;&amp;#039;&amp;#039; All notchian servers only cares about the first 3 bytes. After reading &amp;lt;code&amp;gt;FE 01 FA&amp;lt;/code&amp;gt;, the response will be sent to the client. For backward compatibility, you could only send these 3 bytes and all legacy servers(&amp;lt;=1.6) will respond correspondingly.&lt;br /&gt;
&lt;br /&gt;
=== Server to client ===&lt;br /&gt;
&lt;br /&gt;
The server responds with a 0xFF kick packet. The packet begins with a single byte identifier &amp;lt;code&amp;gt;ff&amp;lt;/code&amp;gt;, then a two-byte big endian short giving the length of the following string in [https://www.unicode.org/glossary/#code_unit code units]. You can actually ignore the length because the server closes the connection after the response is sent.&lt;br /&gt;
&lt;br /&gt;
After the first 3 bytes, the packet is a UTF-16BE string. It begins with two characters: &amp;lt;code&amp;gt;§1&amp;lt;/code&amp;gt;, followed by a null character. On the wire these look like &amp;lt;code&amp;gt;00 a7 00 31 00 00&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The remainder is null character (that is &amp;lt;code&amp;gt;00 00&amp;lt;/code&amp;gt;) delimited fields:&lt;br /&gt;
&lt;br /&gt;
# Protocol version (e.g. &amp;lt;code&amp;gt;47&amp;lt;/code&amp;gt;)&lt;br /&gt;
# Minecraft server version (e.g. &amp;lt;code&amp;gt;1.4.2&amp;lt;/code&amp;gt;)&lt;br /&gt;
# Message of the day (e.g. &amp;lt;code&amp;gt;A Minecraft Server&amp;lt;/code&amp;gt;)&lt;br /&gt;
# Current player count&lt;br /&gt;
# Max players&lt;br /&gt;
&lt;br /&gt;
The entire packet looks something like this:&lt;br /&gt;
&lt;br /&gt;
                 &amp;lt;---&amp;gt; first character&lt;br /&gt;
 0000000: ff00 2300 a700 3100 0000 3400 3700 0000  ....§.1...4.7...&lt;br /&gt;
 0000010: 3100 2e00 3400 2e00 3200 0000 4100 2000  1...4...2...A. .&lt;br /&gt;
 0000020: 4d00 6900 6e00 6500 6300 7200 6100 6600  M.i.n.e.c.r.a.f.&lt;br /&gt;
 0000030: 7400 2000 5300 6500 7200 7600 6500 7200  t. .S.e.r.v.e.r.&lt;br /&gt;
 0000040: 0000 3000 0000 3200 30                   ..0...2.0&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note: &amp;#039;&amp;#039;&amp;#039; When using this protocol with servers on version 1.7.x and above, the protocol version (first field) in the response will always be &amp;lt;code&amp;gt;127&amp;lt;/code&amp;gt; which is not a real protocol number, so older clients will always consider this server incompatible.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
* [https://gist.github.com/6281388 Ruby]&lt;br /&gt;
* [https://github.com/winny-/mcstat PHP]&lt;br /&gt;
* [https://github.com/Duckulus/mc-honeypot/blob/1514807e8af7f7cbfd13111fec334b9f4883b605/src/server/legacy.rs Rust (Server)]&lt;br /&gt;
* [https://github.com/dreamscached/minequery Go]&lt;br /&gt;
* [https://github.com/mcstatus-io/mcutil Go]&lt;br /&gt;
&lt;br /&gt;
== 1.4 to 1.5 ==&lt;br /&gt;
&lt;br /&gt;
Prior to the Minecraft 1.6, the client to server operation is much simpler, and only sends &amp;lt;code&amp;gt;FE 01&amp;lt;/code&amp;gt;, with none of the following data.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/Sch8ill/MCClient-lib Python3 (MCClient-lib)]&lt;br /&gt;
* [https://gist.github.com/5795159 PHP]&lt;br /&gt;
* [https://gist.github.com/4574114 Java]&lt;br /&gt;
* [https://gist.github.com/6223787 C#]&lt;br /&gt;
* [https://github.com/dreamscached/minequery Go]&lt;br /&gt;
* [https://github.com/mcstatus-io/mcutil Go]&lt;br /&gt;
&lt;br /&gt;
== Beta 1.8 to 1.3 ==&lt;br /&gt;
&lt;br /&gt;
Prior to Minecraft 1.4, the client only sends &amp;lt;code&amp;gt;FE&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The server should respond with a kick packet:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
 ! Field Name&lt;br /&gt;
 ! Field Type&lt;br /&gt;
 ! Notes&lt;br /&gt;
 |-&lt;br /&gt;
 | Packet Id&lt;br /&gt;
 | {{Type|Byte}}&lt;br /&gt;
 | The kick packet id: &amp;lt;code&amp;gt;0xFF&amp;lt;/code&amp;gt;&lt;br /&gt;
 |-&lt;br /&gt;
 | Packet Length&lt;br /&gt;
 | {{Type|Short}}&lt;br /&gt;
 | The length of the following string in [https://www.unicode.org/glossary/#code_unit code units] (&amp;#039;&amp;#039;&amp;#039;NOT&amp;#039;&amp;#039;&amp;#039; characters, or bytes). Max is 256.&lt;br /&gt;
 |-&lt;br /&gt;
 | MOTD&lt;br /&gt;
 |rowspan=&amp;quot;3&amp;quot;| A [[Minecraft:wikipedia:UTF-16|UTF-16BE]] encoded string&lt;br /&gt;
 | From here on out, all fields should be separated with &amp;lt;code&amp;gt;§&amp;lt;/code&amp;gt;, in the same string.&lt;br /&gt;
 |-&lt;br /&gt;
 | Online Players&lt;br /&gt;
 | The count of players currently on the server.&lt;br /&gt;
 |-&lt;br /&gt;
 | Max Players&lt;br /&gt;
 | The maximum amount of players that the server is willing to accept.&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
The entire packet looks something like this on wire:&lt;br /&gt;
&lt;br /&gt;
                 &amp;lt;---&amp;gt; first character&lt;br /&gt;
 0000000: ff00 1700 4100 2000 4d00 6900 6e00 6500  ....A. .M.i.n.e.&lt;br /&gt;
 0000010: 6300 7200 6100 6600 7400 2000 5300 6500  c.r.a.f.t. .S.e.&lt;br /&gt;
 0000020: 7200 7600 6500 7200 a700 3000 a700 3100  r.v.e.r.§.0.§.1.&lt;br /&gt;
 0000030: 30                                       0&lt;br /&gt;
&lt;br /&gt;
[[Category:Protocol Details]]&lt;br /&gt;
[[Category:Java Edition protocol]]&lt;br /&gt;
{{license wiki.vg}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:zh:Java版网络协议/服务器列表查询]]&lt;/div&gt;</summary>
		<author><name>SyncBot</name></author>
	</entry>
</feed>