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.
| Field | Display Name | Type | Notes |
|---|---|---|---|
| protocolVersion | Protocol Version | VarInt | The version of the protocol the client is using. This helps the server determine compatibility. |
| hostName | Host Name | Utf | The target host name the client is attempting to connect to. It is limited to a maximum length of 255 characters. |
| port | Port | UnsignedShort | The port number on which the client is attempting to connect to the server. |
| intention | Client Intention | VarInt | The 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. |