Default Dynamic Port Range

by [Published on 23 Dec. 2010 / Last Updated on 31 Oct. 2009]

This article explains the default dynamic port range used by the client computers.

Dynamic Port Range is used by the client computers (or a server acting as a client) to connect to Well Known Port Services or Root Services. A DNS Server is acting as a Server and listening on a specific Well Known Port (Port TCP and UDP 53). The Dynamic Port Range used by the client computers depend on the version of Operating Systems.

Port Range: 1024-65535

This port range is used by the computers running Windows XP, Windows 2000 Professional, and Windows Server 2003. A client computer running this version will always pick a port from the above mentioned Dynamic Port Range.

Port Range: 49152-65535

The Dynamic Port Range has been changed in the Windows Vista, Windows 7 and Windows Server 2008. By default, a fresh Windows Server 2008 installation will have this Dynamic Port Range configured. To see the port range, you can use the following commands:

  • NetSh INT IPV4 Show DynamicPort TCP
  • NetSh INT IPV4 Show DynamicPort UDP

To set or change the Dynamic Port Range:

  • NetSh INT IPV4 SET DynamicPort TCP Start=1024 num=65535
  • NetSh INT IPV4 SET DynamicPort UDP Start=1024 num=65535

See Also

The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP and was awarded the Microsoft MVP award in Directory Services and Windows Networking. He specializes in Microsoft Azure, Office 365, Directory Services, Failover Clusters, Hyper-V, PowerShell Scripting and System Center products. Nirmal has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to PowerShell-based Dynamic Packs for www.ITDynamicPacks.Net solutions.

Featured Links