• RSS
  • Twitter
  • FaceBook

A Quick Tip To Change RPC Port Range

This article explains the MaxUserPort registry entry for RPC.

When a program tries to connect to a Well Known Port service, it requests a free port from the system. The system randomly generates the port no and give it to program requesting the port no. The default dynamic range is 1024-65535. System can give out the ports available from this range randomly. If system gives out 5000 or above than that then an error will be generated and operation will fail. This is because limitation in the registry for Dynamic Port Rage. By default, Dynamic Port Range is configured from 1024-5000. You may need to change this as per your requirement.

To change this, you need to modify a registry entry as mentioned below:

  • KEY Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters
  • Entry Name: MaxUserPort
  • Type: DWORD
  • Value: 65535

Default value is 5000.

About Nirmal Sharma

Nirmal is a Microsoft MVP in Directory Services and working as a Technical Architect/Consultant. He has been involved in Microsoft Technologies since 1994 and followed the progression of Microsoft Operating Systems and software. He is specialized in Directory Services, Microsoft Clustering, SQL, MOM, Exchange and Citrix. In his spare time, he likes to help others and write "internal" technical articles, white papers and tips on various Microsoft technologies. You can contact him at nirmal_sharma@mvps.org.


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?