# WHATPORT(6002)

## NAME

port 6002 — X11 (display :2) — X display :2 — a third X server on the host, physical or virtual.

Protocol: TCP  
IANA registry

## DESCRIPTION

Within IANA's x11 block, 6002 is display :2. It appears on multi-seat machines, on hosts running several Xvnc or Xvfb instances, and on terminal servers that give each session its own display. Everything true of 6000 applies unchanged: host-list or magic-cookie authorization, no encryption, and `-nolisten tcp` as the modern default that has been overridden if the port is open.

## EXPOSURE

**Do not expose.** There is no safe way to publish an X display. Keep it on the Unix socket or loopback and forward it over SSH.

## CHECK

```sh
nmap -Pn -p 6002 --script x11-access TARGET
```

## SEE ALSO

- docs — [X.Org — Xserver(1) manual page](https://xorg.freedesktop.org/archive/current/doc/man/man1/Xserver.1.xhtml) (xorg.freedesktop.org)
- iana — [IANA port registry — 6000-6063 (x11)](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=x11) (iana.org)

---

HTML: <https://whatport.net/6002/> · JSON: <https://whatport.net/6002.json> · full dataset: <https://whatport.net/ports.json>
