Home Net Guide

Home / Port numbers / Port 5986

Port 5986: WinRM (HTTPS)

Windows remote management over an encrypted connection. Port 5986 uses TCP.

Port
5986
Commonly used for
WinRM (HTTPS)
Transport
TCP
Encrypted
Yes (TLS)
Range
User (registered) port, 1024 to 49151
Our advice
Keep it closed to the internet
IANA registration
wsmans WBEM WS-Management HTTP over TLS/SSL (TCP, UDP)

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 5986 is used for

Port 5986 is Windows Remote Management over HTTPS. It does the same job as 5985 with the whole session inside TLS, which is the right choice for machines that are not in the same domain, such as cloud servers.

Should port 5986 be open?

Encrypted or not, it is a remote administration door. Limit it to known management addresses or a VPN.

Related ports

  • Port 5985 (WinRM (HTTP)): Windows remote management and PowerShell remoting
  • Port 3389 (RDP): Windows Remote Desktop

See all port numbers for the full list and how ports, TCP and UDP work.

Previous: Port 5985 (WinRM (HTTP)) · Next: Port 6000 (X11)