Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Take into account that when executing WMI scans on large IP ranges, a No buffer available space Available Space exception may occur since the scan depends on available . This exception occurs due to the availability of TCP ports.   Dynamic The Dynamic Port Range is used by the client computers (or a server acting as a client) computer to connect to Well Known Port Services or Root Services. A DNS Server is acting as a Server and listening on a specific Well Known Port (Port TCP and UDP 53). The This Dynamic Port Range used by the client computers depend depends on the version of Operating Systems.

Port Range: 1024-65535
This port range is - used by the computers running Windows XP, Windows 2000 Professional, and Windows Server 2003. A client computer running this version will always pick a port from the above mentioned Dynamic Port Range. 

Port Range: 49152-65535
The Dynamic Port Range has been changed in the -  used by computers running Windows Vista, Windows 7 and Windows Server 2008. By default, a fresh Windows Server 2008 installation will have this Dynamic Port Range configured.

How can you see the port range?

To see the port range , you can use the following commands:    

  • NetSh INT IPV4 Show DynamicPort TCP

...

  • NetSh INT IPV4 Show DynamicPort UDP

How do you change the port range?


To set or change the Dynamic Port Range use the following commands:    

  • NetSh INT IPV4 SET DynamicPort TCP Start=1024 num=65535

...

  • NetSh INT IPV4 SET DynamicPort UDP Start=1024 num=65535

When you find a No Buffer Available Space exception, follow these steps:

  1. Check the Dynamic Port Range using the above commands.
  2. If the number of ports is less than the given IP range, increase the port range using the commands above
  3. Run the scan again


Other ways to increase if we found this type of error then we can fix via following steps
A) check dynamic port range using NetSh INT IPV4 Show DynamicPort TCP
b) If number of port less then with combination of IP from given IP range we can increase port like NetSh INT IPV4 SET DynamicPort TCP Start=1024 num=65535
c) run scan again, it will find more instanse
Here is more wayt to Increase the range of ephemeral ports


Windows 2003

Increase the range of ephemeral ports by setting the MaxUserPort TCP/IP parameter to an a higher value (like 32768), like 32768 (setting the port range from 1024 to 32768).

Find this option on the windows registry key HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters , as a DWORD value. This will set the port range from 1024 to 32768.

Windows 2008 R2


Increase the range of ephemeral ports by setting the dynamicportrange Dynamic Port Range to an a higher value through the command:

  • netsh int ipv4 set dynamicportrange tcp start=32767 num=65535

This command , this will set the port range from 32768 to 65535.

Redhat LInux 5

Increase the range of ephemeral ports by setting ip_local_port_range kernel value on /proc/sys/net/ipv4/ip_local_port_range, using . Use the command

  • echo "32768 65535" > /proc/sys/net/ipv4/ip_local_port_range 

This range, this will set the port range from 32768 to 65535.