In Linux I can view or change the ephemeral port range using the /proc/sys/net/ipv4/ip_local_port_range file.
How can I view or change the ephemeral port range on a Windows machine?
In Linux I can view or change the ephemeral port range using the /proc/sys/net/ipv4/ip_local_port_range file.
How can I view or change the ephemeral port range on a Windows machine?
This is an old question, and it seems that the answer has changed in newer Windows versions (I'm not sure which ones exactly).
netsh int ipv4 show dynamicport tcp
On my Windows 10 PC, it shows:
Protocol tcp Dynamic Port Range
---------------------------------
Start Port : 49152
Number of Ports : 16384
To change it, eg:
netsh int ipv4 set dynamicport tcp start=49200 num=16000