java.net.SocketException: No buffer space available

Try to set up TCP connections from ports that are greater than 5000, the local computer responds with the following WSAENOBUFS (10055) error.This due to more dynamic ports opened on system.To resolve follow these steps(before doing any registry modification take back up .How to back up and restore the registry in Windows KB322756 .

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)

Using netsh command

•netsh int ipv4 set dynamicport tcp start=10000 num=1000
•netsh int ipv4 set dynamicport udp start=10000 num=1000

Advertisements

Posted on December 12, 2014, in Windows. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: