Linux Socket Table Decoder
Turn a row of /proc/net/tcp, tcp6, udp or udp6 back into addresses and ports, the socket state, the queues, the UID and the socket inode — the fields ss and netstat hide behind hex.
What the columns hold
State codes in the st column
| Code | State | Meaning |
|---|
The address columns are not dotted quads: the kernel prints the address as a 32-bit word (tcp, udp) or four 32-bit words (tcp6, udp6) with %08X straight from memory, and the port as %04X. On a little-endian host — x86, ARM64, RISC-V, every machine that produces these dumps in practice — each word's four octets therefore read backwards: 0100007F is 127.0.0.1, 3500007F is 127.0.0.53 and 00000000000000000000000001000000 is ::1. The state column is the low byte of the kernel's sk_state enum, which is why 0A is LISTEN and 06 is TIME_WAIT; a UDP socket is unconnected (07) until connect() fixes its peer, when it reads 01. The page accepts the full eleven-column row, the short local remote state form and a lone endpoint, skips a header line, and refuses a row whose fields do not line up instead of guessing at shifted columns. Everything is decoded locally in your browser; nothing is sent or stored.