# WHATPORT(5802)

## NAME

port 5802 — VNC over HTTP (display :2) — VNC's web-viewer port for display :2 — the second per-user desktop on a shared host.

Protocol: TCP  
IANA registry

## DESCRIPTION

5802 is 5800 plus display 2, the HTTP listener a VNC server opens alongside RFB on 5902. It shows up on multi-user Linux boxes where several people each run their own `vncserver` session, so displays climb :1, :2, :3 and the HTTP and RFB ports climb with them. The port is unassigned at IANA and exists purely by VNC convention.

## EXPOSURE

**Do not expose.** A second exposed desktop is not safer than the first. Bind VNC to localhost and reach it over SSH.

## CHECK

```sh
curl -sS -o /dev/null -w '%{http_code}\n' http://TARGET:5802/
```

## SEE ALSO

- source — [x11vnc — -http option, Java vncviewer download on the 5800+display port](https://github.com/LibVNC/x11vnc/blob/master/src/help.c) (github.com)
- iana — [IANA port registry — 5802 (unassigned)](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=5802) (iana.org)

---

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