How to increase the Tcp port greater than 5000 Windows


Issue: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.


What is TCP?


Basically, TCP is a transport layer protocol in the OSI layer and it is used to create a connection between remote computers by transporting and ensuring the delivery of messages over supporting networks and the Internet.


Today Transmission Control Protocol is one of the most used protocols in digital network communications and thus it has become the part of internet protocol suite which is now commonly known as TCP/IP suite. One of the best advantages of using TCP is that it ensures end-to-end delivery of data between distinct nodes. This TCP transports and ensures that the data is delivered to the correct destination by having good collaboration with Internet Protocol by defining the logical location of the remote node.


So before transmitting the data TCP will create a connection between the source and destination node and thus it will keep it alive until the communication is active. Moreover in TCP it breaks larger data into smaller pockets by ensuring that the data integrity is intact once it is assembled at the destination node.


The protocols that primarily use port are the transport layer protocols, whereas the Transmission Control Protocol is TCP and the User Datagram Protocol is UDP.


Ports and protocol provide access to a host Windows computer. However, they also create security hazards by allowing unwanted access. So that, knowing which port to allow or disable increases a network's security.


If the wrong ports or protocol numbers are assigned in a firewall, router, or proxy server as a security measure, essentially the services will become unavailable.

How to increase the ports greater than 5000?


You have to do any modifications in the Registry Editor. It may occur serious problem If you modify the Registry Editor incorrectly.


So that make sure that you follow these steps carefully. For preventing this issue you can back up the Registry, before editing the Registry editor.


The default max no of TCP port is 5000, So you need to add the new parameter to be added.

To increase the max TCP port, Follow the below steps.


1. Start the Registry Editor.


2. Find the Following key in the sub-registry and then you can click on Parameters:




3. And in above path open the edit menu, And click New, and then add the following DWORD value.


   Value Name: MaxUserPort

   Value Type: DWORD

   Value data: 65534

   Valid Range: 5000-65534 (decimal)

   Default: 0x1388 (5000 decimal)


Screenshots attached for the same.


Step 1.



Step 2:




Choose the Dword value.


Step 3




Enter the values mentioned in above.


Here we have increased the port to maximum port number, which is the last port we can enable.


Once its updated, please restart all the services, It will be increased.

Get offers from Web hosting. Visit Web Hosting page.