Skip to content

Handshake

Packet IDDirectionMojang NameMCP Name
0x02BothPreLoginPacketPacket2Handshake

This is the first packet that is sent after the connection to the server is made.

Clientbound

FieldTypeDescription
Connection HashString16A unique per-connection hash, or "-"

The vanilla server will set the hash to "-" if online mode is disabled, which will prevent the client from doing name authentication.

Serverbound

FieldTypeDescription
UsernameString16The name of the connecting user

Example Packets

Clientbound

FieldValue
Connection Hash2e66f1dc032ab5f0

Serverbound

FieldValue
UsernameNotch