nmap_performance.reg no longer sets MaxUserPort=0xfffe. It now contains
"MaxUserPort"=- instead, which deletes the value unconditionally: any
existing MaxUserPort is removed whenever the file is applied, whoever
set it, not only when an earlier Nmap installer wrote it. This is the
only way to undo what earlier installers did on upgrade. As before, the
file is only applied when the user opts into the "Network Performance
Improvements" installer section, and the dynamic port range itself
changes after the next reboot because MaxUserPort is read at boot.
MaxUserPort raised the ephemeral port limit on Windows 2000/XP/2003,
whose default dynamic port range was 1025-5000. Nmap dropped those
systems in 7.25BETA1, and since 7.92 the Windows binaries do not run on
Vista or earlier at all. On Windows Vista and later the default range is
already 49152-65535, and MaxUserPort instead widens it to 1024-65534.
That spreads every outgoing connection over the whole port space and
breaks software that needs a contiguous block of host ports: WSL2
mirrored networking fails with
CreateInstance/CreateVm/ConfigureNetworking/0x8007054f and falls back
to no networking (microsoft/WSL#13454, where several reporters traced
it to this installer option).
TcpTimedWaitDelay and StrictTimeWaitSeqCheck are unchanged. The install
guide now describes the deletion, the manual fix for users who do not
re-run the installer, and how to widen the ephemeral range with netsh
from a high starting port if a scan really needs more than 16384 ports.
Verified on Windows 11: applying the file with "regedt32 /S" deletes
MaxUserPort and sets the other two values. The installer itself was not
tested end to end.
Refs: GH#149
Nmap is released under a custom license, which is based on (but not compatible
with) GPLv2. The Nmap license allows free usage by end users, and we also offer
a commercial license for companies that wish to redistribute Nmap technology
with their products. See Nmap Copyright and Licensing
for full details.
The latest version of this software as well as binary installers for Windows,
macOS, and Linux (RPM) are available from
Nmap.org
For far more in-depth compilation, installation, and removal notes, read the
Nmap Install Guide on Nmap.org.
Using Nmap
Nmap has a lot of features, but getting started is as easy as running nmap scanme.nmap.org. Running nmap without any parameters will give a helpful
list of the most common options, which are discussed in depth in the man
page. Users who prefer a graphical interface
can use the included Zenmap front-end.
Contributing
Information about filing bug reports and contributing to the Nmap project can
be found in the HACKING and CONTRIBUTING.md
files.