端口扫描器
在线端口扫描器
即时检测您公网IP地址上任意TCP端口是否开放。测试端口转发、防火墙规则及服务可访问性——免费,无需注册。
检测任意端口
Checking against 216.73.216.146
常用端口
一次扫描 12 个最常用的 TCP 端口
Web
80HTTP
443HTTPS
8080HTTP Alt
8443HTTPS Alt
访问
22SSH
21FTP
3389RDP
25SMTP
数据库
3306MySQL
5432PostgreSQL
6379Redis
27017MongoDB
什么是端口扫描器?
端口扫描器用于测试您IP地址上的TCP端口是否可从公网访问。当您运行某项服务——如Web服务器、数据库或SSH守护进程——它会监听特定的端口号。本工具会依次连接各个端口,并报告其状态:开放(接受连接)、关闭(主动拒绝)或已过滤(被防火墙静默屏蔽)。
常见使用场景
- 验证路由器上的端口转发配置是否正确
- 检查服务(Web服务器、SSH、数据库)是否可公网访问
- 审计防火墙规则——确认预期关闭的端口是否确实被屏蔽
- 排查客户端与服务器之间的连接问题
了解端口状态
开放 有服务正在监听,已接受我们的 TCP 连接。该端口可从公网访问。
关闭 没有服务在监听,但端口可达。主机返回了 TCP RST(重置)数据包。
已过滤 防火墙正在静默丢弃数据包。在超时时间内(1.5秒)未收到任何响应。
常用端口参考
| Port | Service | Used For |
|---|---|---|
| 21 | FTP | File Transfer Protocol — legacy file sharing |
| 22 | SSH | Secure Shell — encrypted remote terminal access |
| 25 | SMTP | Simple Mail Transfer Protocol — email sending |
| 53 | DNS | Domain Name System — hostname resolution (UDP) |
| 80 | HTTP | HyperText Transfer Protocol — unencrypted web |
| 443 | HTTPS | HTTP over TLS — encrypted web traffic |
| 3306 | MySQL | MySQL database server |
| 3389 | RDP | Windows Remote Desktop Protocol |
| 5432 | PostgreSQL | PostgreSQL database server |
| 6379 | Redis | Redis in-memory cache and message queue |
| 8080 | HTTP Alt | Alternative HTTP port, common in development |
| 8443 | HTTPS Alt | Alternative HTTPS port |
| 27017 | MongoDB | MongoDB document database server |