Home docs pia protocols NAT Traversal
Post

NAT Traversal

Up to Pia version 5.10, the protocol port was used to determine the message type.

Protocol PortDescription
1Probe request
2Probe reply
3Dummy packet

In Pia version 5.11 and later, all packets are sent through port 0 and always contain the NatProbeData structure.

The following version numbers are advertised during the connection request:

Pia versionVersion
5.19 - 5.430

Probe request

OffsetSizeDescription
0x016NatProbeData

Probe reply

OffsetSizeDescription
0x016NatProbeData

Dummy packet

OffsetSizeDescription
0x05“Dummy”

NatProbeData

OffsetSizeDescription
0x04Service variable id
0x41Probe type (0=request 1=reply, 255=dummy)
0x53Padding
0x88System time (OSGetSystemTime on Wii U, nn::os::GetSystemTick on Switch)

5.11 - 5.43:

OffsetSizeDescription
0x104Variable id
Contents