posts - 21,comments - 0,views - 19263

报错:

无法访问此网站
网址为 http://**********:6666 的网页可能暂时无法连接,或者它已永久性地移动到了新网址。
ERR_UNSAFE_PORT

 

chorme浏览器有自己的默认非安全端口,若访问这些端口就会出现这个错误,并且所有采用chorme内核的浏览器都会这样。解决方案是更换自己项目的端口,这里列出所有chorme的默认非安全端口,请大家在搭建项目时避免使用这些端口:

  1. 1, // tcpmux
  2. 7, // echo
  3. 9, // discard
  4. 11, // systat
  5. 13, // daytime
  6. 15, // netstat
  7. 17, // qotd
  8. 19, // chargen
  9. 20, // ftp data
  10. 21, // ftp access
  11. 22, // ssh
  12. 23, // telnet
  13. 25, // smtp
  14. 37, // time
  15. 42, // name
  16. 43, // nicname
  17. 53, // domain
  18. 77, // priv-rjs
  19. 79, // finger
  20. 87, // ttylink
  21. 95, // supdup
  22. 101, // hostriame
  23. 102, // iso-tsap
  24. 103, // gppitnp
  25. 104, // acr-nema
  26. 109, // pop2
  27. 110, // pop3
  28. 111, // sunrpc
  29. 113, // auth
  30. 115, // sftp
  31. 117, // uucp-path
  32. 119, // nntp
  33. 123, // NTP
  34. 135, // loc-srv /epmap
  35. 139, // netbios
  36. 143, // imap2
  37. 179, // BGP
  38. 389, // ldap
  39. 465, // smtp+ssl
  40. 512, // print / exec
  41. 513, // login
  42. 514, // shell
  43. 515, // printer
  44. 526, // tempo
  45. 530, // courier
  46. 531, // chat
  47. 532, // netnews
  48. 540, // uucp
  49. 556, // remotefs
  50. 563, // nntp+ssl
  51. 587, // stmp?
  52. 601, // ??
  53. 636, // ldap+ssl
  54. 993, // ldap+ssl
  55. 995, // pop3+ssl
  56. 2049, // nfs
  57. 3659, // apple-sasl / PasswordServer
  58. 4045, // lockd
  59. 6000, // X11
  60. 6665, // Alternate IRC [Apple addition]
  61. 6666, // Alternate IRC [Apple addition]
  62. 6667, // Standard IRC [Apple addition]
  63. 6668, // Alternate IRC [Apple addition]
  64. 6669, // Alternate IRC [Apple addition]

 

如果非要使用类似的端口,

我们要做的是允许访问非常规端口地址,解决办法:选中Google Chrome 快捷方式,右键属性,在”目标”对应文本框添加:

--explicitly-allowed-ports=87,6666,556,6667

 

 

允许多个端口以逗号隔开,最终如下:

C:\Users\用户名\AppData\Local\Google\Chrome\Application\chrome.exe  --explicitly-allowed-ports=6666,556
posted on   陈岚  阅读(126)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示