Skip to main content
Version: 1.21.4

Handshake

Clientbound (Client → Server)

Serverbound (Server → Client)

0x00 Client Intention Packet

This packet is used during the handshake phase to communicate the client's intention to the server, including the protocol version, target host, port, and the type of connection the client intends to establish.

FieldDisplay NameTypeNotes
protocolVersionProtocol VersionVarIntThe version of the protocol the client is using. This helps the server determine compatibility.
hostNameHost NameUtfThe target host name the client is attempting to connect to. It is limited to a maximum length of 255 characters.
portPortUnsignedShortThe port number on which the client is attempting to connect to the server.
intentionClient IntentionVarIntThe type of connection the client intends to establish, represented by an ID. This could indicate whether the client wants to join a game, query server status, etc.