In some situations, you may want to
reserve a range of ports so that a program or application process that requests a random
port and same will be assigned a port which is not in the reserved range.
When you
reserve a range of ports, only a program or process that specifically requests
a port that is in the reserved range can be use the port.
Windows 2003 server
To reserve a range of ports so that only a program or process that specifically requests a
port that is in the reserved range can use the port, follow these steps.
Start Registry Editor (Regedit.exe).
Locate and then click the following registry
subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
On the Edit menu, point to New, and then
click Multi-string Value.
Right-click the new value, click Rename,
type ReservedPorts, and then press ENTER.
Double-click the ReservedPorts value,
type the range of ports that you want to reserve, and then click OK.
Note You must type the range of ports in
the following format:
xxxx-yyyy
To specify a single port, use the same
value for x and y. For example, to specify port 4000, type 4000-4000.
Warning If you specify the continuous
ports separately and if one port is reserved and not used, the next port is not
correctly reserved, and it is used.
Click OK.
Quit Registry Editor.
WINDOWS 2008 Server
netsh int ipv4 show dynamicport tcp
netsh int ipv4 set dynamicport tcp
start=9999 num=55000
No comments:
Post a Comment