
웹 서버에 연결할 때 이 오류가 발생합니다.포트 6666( http://myserver:6666/
):
오류 312(net::ERR_UNSAFE_PORT): 알 수 없는 오류입니다.
이거 없이 쉽게 해결할 수 있는 방법 없을까요?소스에서 Chrome 재구축?
답변1
~에윈도우:
Chrome 바로가기를 마우스 오른쪽 버튼으로 클릭 >> 속성 >>
--explicitly-allowed-ports=xxx
그런 다음 바로 가기 대상에 추가
예:
C:\Documents and Settings\User\Local Settings\Application Data\Google\Chrome\Application\chrome.exe --explicitly-allowed-ports=6666
출처:여기
답변2
Google Chrome에서 이 기능을 끌 수 있지만 그렇게 할 때 발생하는 위험은 사용자 본인의 책임입니다. 실제로 Chrome이 이러한 포트를 차단하는 데에는 보안상 타당한 이유가 있습니다. 기본적으로 공격자가 네트워크의 다른 서비스를 공격하는 데 사용할 수 있는 개방형 프록시로 브라우저를 엽니다.
답변3
다른 답변 상태와 마찬가지로 포트를 명시적으로 허용할 수 있지만 대부분의 경우 제한된 포트를 사용하지 않으면 문제를 더 쉽게 해결할 수 있습니다.
const int kRestrictedPorts[] = {
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
69, // tftp
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
137, // netbios
139, // netbios
143, // imap2
161, // snmp
179, // BGP
389, // ldap
427, // SLP (Also used by Apple Filing Protocol)
465, // smtp+ssl
512, // print / exec
513, // login
514, // shell
515, // printer
526, // tempo
530, // courier
531, // chat
532, // netnews
540, // uucp
548, // AFP (Apple Filing Protocol)
554, // rtsp
556, // remotefs
563, // nntp+ssl
587, // smtp (rfc6409)
601, // syslog-conn (rfc3195)
636, // ldap+ssl
989, // ftps-data
990, // ftps
993, // ldap+ssl
995, // pop3+ssl
1719, // h323gatestat
1720, // h323hostcall
1723, // pptp
2049, // nfs
3659, // apple-sasl / PasswordServer
4045, // lockd
5060, // sip
5061, // sips
6000, // X11
6566, // sane-port
6665, // Alternate IRC [Apple addition]
6666, // Alternate IRC [Apple addition]
6667, // Standard IRC [Apple addition]
6668, // Alternate IRC [Apple addition]
6669, // Alternate IRC [Apple addition]
6697, // IRC + TLS
10080, // Amanda
};
따라서 6666 대신 6060을 사용할 수 있으며 이 문제는 발생하지 않습니다.
답변4
-explicitly-allowed-ports
subanki가 말했듯 이 Chrome 시작 명령에 옵션을 추가해야 합니다 .
Ubuntu에서는 Chrome 설치 폴더 아래의 "google-chrome" 스크립트를 편집하여 루트로 이 작업을 수행할 수 있습니다.
다음을 입력하여 디렉토리를 가져올 수 있습니다.
ls -la /usr/bin | grep chrome
그런 다음 언급된 스위치를 EXEC 줄에 추가하여 "google-chrome" 파일을 편집합니다.
exec -a "$0" "$HERE/chrome" "-explicitly-allowed-ports=6000" "$@"
필요할 수 있는 쉼표로 구분된 값으로 "6000"을 변경하세요(예: -explicitly-allowed-ports=5000,6000,7000
).
참고: UNIX의 경우 스위치는 "--"로 시작하지 않고 단일 "-"로 시작합니다.