-
Notifications
You must be signed in to change notification settings - Fork 0
💩 Development in Windows (11, WSL)
Pier Dolique edited this page Aug 16, 2024
·
3 revisions
It looks like winnat
automatically excludes 100 new ports at every new WSL start. When port 3000 is in this range, it becomes unavailable from WSL.
netsh interface ipv4 show excludedportrange protocol=tcp
netsh int ipv4 show dynamicportrange proto=tcp
netsh int ip delete excludedportrange proto=tcp startport=2961 numberofports=100
This command requires winnat
service to be stopped. And just winnat
service restart can help without manual port range removal.
net stop winnat
It can potentially prevent blocking port 3000 (haven't tested):
netsh int ipv4 set dynamicportrange proto=tcp startport=10000 numberofports=3000