1 Problem Description
Write a new Spring Boot project with the project port number defined as 6667. The project starts normally, but an ERR_UNSAFE_PORT error occurs when you enter the access address in Chrome. This literally means an unsafe port number.
2 Cause Analysis
The Chrome browser defines built-in ports that cause the ERR_UNSAFE_PORT problem if the address port number you want to access is the same as those built-in ports.
Chrome defines the following built-in ports 1:
1, // tcpmux
7, // echo
9, // discard
11, // systat
13, // daytime
15, // netstat
17, // qotd
19, // chargen
20, // ftp data
21, // ftp access
22, // ssh
23, // telnet
25, // smtp
37, // time
42, // name
43, // nicname
53, // domain
77, // priv-rjs
79, // finger
87, // ttylink
95, // supdup
101, // hostriame
102, // iso-tsap
103, // gppitnp
104, // acr-nema
109, // pop2
110, // pop3
111, // sunrpc
113, // auth
115, // sftp
117, // uucp-path
119, // nntp
123, // NTP
135, // loc-srv /epmap
139, // netbios
143, // imap2
179, // BGP
389, // ldap
465, // smtp+ssl
512, // print / exec
513, // login
514, // shell
515, // printer
526, // tempo
530, // courier
531, // chat
532, // netnews
540, // uucp
556, // remotefs
563, // nntp+ssl
587, // stmp?
601, // ??
636, // ldap+ssl
993, // ldap+ssl
995, // pop3+ssl
2049, // nfs
3659, // apple-sasl / PasswordServer
4045, // lockd
6000, // X11
6665, // Alternate IRC
6666, // Alternate IRC
6667, // Standard IRC
6668, // Alternate IRC
6669, // Alternate IRC
Copy the code
3 Solutions
-
Change the port number for engineering applications. (recommended)
-
In the Chrome shortcut command, add the port number. The format is: — minority-allowed-ports = Port number
- Blog.csdn.net/kjcxmx/arti…↩