Article ID: 929851 - Last Review: September 1, 2009 - Revision: 5.0

The default dynamic port range for TCP/IP has changed in Windows Vista and in Windows Server 2008

Expand all | Collapse all

INTRODUCTION

To comply with Internet Assigned Numbers Authority (IANA) recommendations, Microsoft has increased the dynamic client port range for outgoing connections in Windows Vista and in Windows Server 2008. The new default start port is 49152, and the default end port is 65535. This is a change from the configuration of earlier versions of Microsoft Windows that used a default port range of 1025 through 5000.

MORE INFORMATION

You can view the dynamic port range on a computer that is running Windows Vista or Windows Server 2008 computer by using the following netsh commands:
  • netsh int ipv4 show dynamicport tcp
  • netsh int ipv4 show dynamicport udp
  • netsh int ipv6 show dynamicport tcp
  • netsh int ipv6 show dynamicport udp
Note The range is set separately for each transport and for each version of IP. The port range is now truly a range with a starting point and with an endpoint. Microsoft customers who deploy servers that are running Windows Server 2008 may have problems with RPC communication between servers if firewalls are used on the internal network. In these cases, we recommend that you reconfigure the firewalls to allow for traffic between servers in the dynamic port range of 49152 through 65535. This range is in addition to well-known ports that are used by services and by applications. Or, the port range that is used by the servers can be modified on each server. You adjust this range by using the netsh command, as follows:
netsh int <ipv4|ipv6> set dynamic <tcp|udp> start=number num=range
This command sets the dynamic port range for TCP. The start port is number, and the total number of ports is range. The following are sample commands:
  • netsh int ipv4 set dynamicport tcp start=10000 num=1000
  • netsh int ipv4 set dynamicport udp start=10000 num=1000
  • netsh int ipv6 set dynamicport tcp start=10000 num=1000
  • netsh int ipv4 set dynamicport udp start=10000 num=1000
The examples set your dynamic port range to start at port 10000 and to end at port 11000 (1000 ports). The minimum range of ports that you can set is 255. The minimum starting port that you can set is 1025. The maximum end port that is based on the range that you set cannot exceed 65535. To duplicate the default behavior of Windows Server 2003, use 1025 as your start port, and then use 3975 as your end port for both TCP and UDP.

Note When you install Microsoft Exchange Server 2007 on a Windows Server 2008-based computer, the default port range used is 1025 through 5000.

For more information about port usage and how ports can be statically mapped in Exchange 2007, click the following article number to view the article in the Microsoft Knowledge Base:
270836  (http://support.microsoft.com/kb/270836/ ) Exchange Server static port mappings
For more information about security in Exchange 2007, see the Exchange 2007 Security Guide topic on the following Microsoft TechNet Web site:
http://technet.microsoft.com/en-us/library/bb691338.aspx (http://technet.microsoft.com/en-us/library/bb691338.aspx)

REFERENCES

For more information about IANA port-assignment standards, visit the following IANA Web site:
http://www.iana.org/assignments/port-numbers (http://www.iana.org/assignments/port-numbers)
Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

APPLIES TO
  • Windows Vista Enterprise
  • Windows Vista Business
  • Windows Vista Business 64-bit Edition
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Ultimate
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Server 2008 Standard without Hyper-V
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
  • Windows Web Server 2008
Keywords: 
kbexpertiseadvanced kbtshoot kbinfo kbprb KB929851
 

Article Translations