Dynamic Port Range in Windows Server 2008

by Nirmal Sharma [Published on 9 Dec. 2008 / Last Updated on 9 Dec. 2008]

This article explains the default Dynamic Port range in Windows Server 2008 and how to see the range using the NetSH command line tool.

Dynamic Port Range is reserved by the Operating System. This range is assigned by the Internet Assigned Numbered Authority (IANA). The applications can't hard-code this port range for network communication. Microsoft developers have increased the default Dynamic Port range in Windows Vista and Windows Server 2008. The range is:

  • 49152 through 65535
    For Windows Vista and Windows Server 2008
  • 1024 through 5000
    For Windows 2003 and earlier

 To show the Dynamic Port Range:

  • Netsh int, ipv4 show dynamicport udp
  • Netsh int, ipv4 show dynamicport tcp
  • Netsh int, ipv6 show dynamicport udp
  • Netsh int, ipv6 show dynamicport tcp

To set the Dynamic Port Range:

  • Netsh int, ipv4 set dynamicport tcp start=xxxxx num=xxxxx
  • Netsh int, ipv4 set dynamicport udp start=xxxxx num=xxxxx
  • Netsh int, ipv6 set dynamicport tcp start=xxxxx num=xxxxx
  • Netsh int, ipv6 set dynamicport udp start=xxxxx num=xxxxx

See Also

Featured Links