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.

 

When you connect TCP port greater than 5000 you will get an error as shown below

 

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

 

How to increase the ports greater than 5000?

 

To solve this you need some increase the port to the maximum port number for that you need to to do some modification involving the Registry Editor and changes made in the registry editor should be done carefully because any incorrect changes done in the Registry Editor, may cause a serious problem to occur. So Always make that you are performing the steps carefully. And you can take backup of the Registry Editor before editing it.

 

Registry Editor: Using a registry Editor you can view, create and modify the registry values and keys which make the entire windows registry. And windows registry is a database which stores different configuration settings (almost all configuration settings which are included in windows are stored). Even the third-party programs may or may not use the registry to store the settings.

 

By default, the maximum number of TCP port is 5000. to this, the new parameter should be added



Step to increase the max TCP port is as follows:

 

Step 1: Start the Registry Editor.

Login to RDP >> using the search box on the taskbar you need to search for regedit >>select the Registry Editor (Desktop app)

Or

click on the Start  button >>then select Run >> Enter regedit in the Open box >> and select OK.

 

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

  HKEY_LOCAL_MACHINE\SYSTEM\currentControlSet\services\Tcpip\Parameters

 

Regedit1.png



Step 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)

 

Regedit2.png

 

Step 4: Enter the values mentioned in as shown in the below figure:

 

Regedit3.png

 

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

 

Step 5: After its updated, please restart all the services and It will be increased.

If you need any assistance, feel free to contact our technical team members as they are available 24/7 via phone call, email, ticket system or call out to our toll-free number.

 

Get offers from Web hosting. Visit Web Hosting page.