How to fix ERR_UNSAFE_PORT error on Chrome when browsing to unsafe ports
I'm getting this error when connecting to a web server on port 6666 (http://myserver:6666/
):
Error 312 (net::ERR_UNSAFE_PORT): Unknown error.
Is there an easy way to resolve this without rebuilding Chrome from source?
On Windows:
Right Click on Chrome shortcut >> Properties >>
Then Append
--explicitly-allowed-ports=xxx
to shortcut target
Example:
C:\Documents and Settings\User\Local Settings\Application Data\Google\Chrome\Application\chrome.exe --explicitly-allowed-ports=6666
Resource from here
You may be able to turn this off in Google Chrome, but you do so at your own risk. There is actually a good security reason why Chrome blocks these ports: Basically you open your browser up to being an open proxy for attackers to use to attack other services on your network.
For more information: Why does Chrome consider some ports unsafe?