I solved this Problem by following this website
https://www.baselogic.com/2011/11/23/solved-java-net-bindexception-address-use-connect-issue-windows/
The solution.
The default maximum number of ephemeral TCP ports is 5000 in the products that are included in the âApplies toâ section. A new parameter has been added in these products. To increase the maximum number of ephemeral ports, follow these steps:
- Start Registry Editor.
- Locate the following subkey in the registry, and then click Parameters: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
- On the Edit menu, click New, and then add the following registry entry:
Value Name: MaxUserPort
Value Type: DWORD
Value data: 65534
Valid Range: 5000-65534 (decimal)
Default: 0x1388 (5000 decimal)
Description: This parameter controls the maximum port number that is used when a program requests any available user port from the system. Typically, ephemeral (short-lived) ports are allocated between the values of 1024 and 5000 inclusive. After the release of security bulletin MS08-037, the behavior of Windows Server 2003 was changed to more closely match that of Windows Server 2008 and Windows Vista. For more information about Microsoft security bulletin MS08-037, click the following article numbers to view the articles in the Microsoft Knowledge Base:
951746 MS08-037: Description of the security update for DNS in Windows Server 2008, in Windows Server 2003, and in Windows 2000 Server (DNS server-side): July 8, 2008
951748 MS08-037: Description of the security update for DNS in Windows Server 2003, in Windows XP, and in Windows 2000 Server (client side): July 8, 2008
953230 MS08-037: Vulnerabilities in DNS could allow spoofing
Exit Registry Editor, and then restart the computer.
This seemed like it was simple, but I was not able to find the correct editable parameter in my regedit.
Here is what I did to add this parameter:
- Right mouse clicked on Parameters.
- Create a new DWORD value with name MaxUserPort
- Right mouse click on MaxUserPort .
- then enter 65534 for the Value Data field.
- Under the radio button selection for Base, select the Decimal radio button.