This article only applies to the 64-bit versions of Windows 7 and Windows 2008 R2. Microsoft has removed the ability to exclude ephemeral ports in Windows 8 and Server 2012.
How can I reserve ports used by PRTK/DNA so that they are not taken by other programs?
- Install the attached Windows Hotfix and reboot your PC
- Make sure ElasticSearch and PRTK/DNA are stopped
- Open a Command Prompt (as Administrator)
- Run the following command:
netsh int ipv4 Add excludedportrange protocol=tcp startport=49170 numberofports=30
These steps will prevent programs requesting dynamic/ephemeral ports from being assigned ports that may interfere with PRTK/DNA usage. Namely, this reserves TCP ports 49170-49199. Please note that this will not prevent applications using hard-coded port numbers from using these ports.
To reverse this setting, use the following command:
netsh int ipv4 delete excludedportrange protocol=tcp startport=49170 numberofports=30