当前位置:网站首页>浏览器访问swagger失败,显示错误ERR_UNSAFE_PORT
浏览器访问swagger失败,显示错误ERR_UNSAFE_PORT
2022-07-25 09:20:00 【只想搞钱的程序媛】
这几天一直在解决一个诡异的事:
我部署jar包到服务器后,明明postman修改IP和port后都能跑通,但对应的swagger修改URL后一直显示找不到页面!!
postman测试结果如下:

浏览器访问swagger结果如下:

原本的端口是6668,最后修改成8123重新部署后就成功显示了, 查询后得知,原来6668是被谷歌禁用的特殊端口号
列出谷歌禁用的端口号如下(各个浏览器情况会不同),以下就不要用来做部署的端口号了:
| 端口号 | 内容 | 端口号 | 内容 |
| 1 | tcpmux | 123 | NTP |
| 7 | echo | 135 | loc-srv/epmap |
| 9 | discard | 139 | netblos |
| 11 | systat | 143 | imap2 |
| 13 | daytime | 179 | BGP |
| 15 | netstat | 389 | ldap |
| 17 | qotd | 465 | smtp+ssl |
| 19 | chargen | 512 | print / exec |
| 20 | ftp data | 513 | login |
| 21 | ftp access | 514 | shell |
| 22 | ssh | 515 | printer |
| 23 | telnet | 526 | tempo |
| 25 | smtp | 530 | courier |
| 37 | time | 531 | chat |
| 42 | name | 532 | netnews |
| 43 | nicname | 540 | uucp |
| 53 | domain | 556 | remotefs |
| 77 | priv-rjs | 563 | nntp+ssl |
| 79 | finger | 587 | stmp |
| 87 | ttylink | 601 | / |
| 95 | supdup | 636 | ldap+ssl |
| 101 | hostriame | 993 | ldap+ssl |
| 102 | iso-tsap | 995 | pop3+ssl |
| 103 | gppitnp | 2049 | nfs |
| 104 | acr-nema | 3659 | apple-sasl / PasswordServer |
| 109 | pop2 | 4045 | lockd |
| 110 | pop3 | 6000 | X11 |
| 111 | sunrpc | 6665 | Alternate IRC |
| 113 | auth | 6666 | Alternate IRC |
| 115 | sftp | 6667 | Standard IRC |
| 117 | uucp-path | 6668 | Alternate IRC |
| 119 | nntp | 6669 | Alternate IRC |
边栏推荐
- Redis set 结构命令
- Swagger2显示get接口有问题,加注解就能解决
- @1-1 CCF 2021-04-1 灰度直方图
- @3-1 CCF 2020-09-1 称检测点查询
- A brief introduction to the interest of convolutional neural networks
- < T> Generic method demonstration
- 通过robocopy对文件/夹进行复制
- ¥1-3 SWUST oj 942: 逆置顺序表
- Click to hide the column in wechat applet, and then click to show it
- 初始Flask以及简单地上手应用
猜你喜欢
随机推荐
redis的五种数据结构原理分析
[GKCTF 2021]easynode
Click to hide the column in wechat applet, and then click to show it
Go foundation 2
无法再web服务器上启动调试,web服务器未能找到请求资源
抽象类和接口的区别(最详细)
idea实用tips---如今将pom.xml(红色)改为pom.xml(蓝色)
【代码源】每日一题 树
【代码源】每日一题 - 排队
作业7.15 shell脚本
[De1CTF 2019]SSRF Me
基本的网络知识
Detailed explanation of pipeline pipeline mechanism in redis
Flask SSTI注入学习
作业7.19 顺序表
~1 ccf 2022-06-2 寻宝!大冒险!
excl批量导入数据,后台公共解析方法
What are stand-alone, cluster and distributed?
Idea hot deployment
Idea practical tips --- now change pom.xml (red) to pom.xml (blue)





![[GYCTF2020]Node Game](/img/8d/7e6c2fb2a0359298fbcc1cd8544710.png)



