Home / Port numbers / Port 5938
Port 5938: TeamViewer
The TeamViewer remote support service. Port 5938 uses TCP, UDP.
- Port
- 5938
- Commonly used for
- TeamViewer
- Transport
- TCP, UDP
- Encrypted
- Yes
- Range
- User (registered) port, 1024 to 49151
- Our advice
- Nothing to open: your devices connect outwards
- IANA registration
- Not assigned to any service
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 5938 is used for
Port 5938 is the preferred port of TeamViewer, the remote support and remote control program. Both the helper and the person being helped connect outwards to TeamViewer's servers on it, which is how sessions work without any router changes. If 5938 is blocked the program falls back to 443 and then 80.
Should port 5938 be open?
Nothing needs to be opened or forwarded for TeamViewer to work, and its presence in a firewall log only shows the program is in use. The real-world risk is social: scammers posing as support staff talk people into installing remote control tools. Only accept a session you asked for.
IANA, which keeps the official list of port numbers, has not assigned port 5938 to any service. The use described here is a convention that software makers have settled on.
Related ports
- Port 3389 (RDP): Windows Remote Desktop
- Port 5900 (VNC): remote screen sharing
- Port 443 (HTTPS): encrypted web pages
See all port numbers for the full list and how ports, TCP and UDP work.