brandonvessel / PortNotAvailableWindowsFix

Fix for that nasty port not available error message

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PortNotAvailableWindowsFix

Fix for that nasty port not available error message

Problem:

Typical error message:

"Ports are not available: exposing port TCP 0.0.0.0: -> 0.0.0.0:0: listen tcp 0.0.0.0:: bind: An attempt was made to access a socket in a way forbidden by its access permissions."

Fix:

net stop winnat

netsh int ipv4 add excludedportrange protocol=tcp startport= numberofports=1

net start winnat

Result:

Port can now be reserved :D

About

Fix for that nasty port not available error message

License:GNU Affero General Public License v3.0