我的連接埠開放了嗎?
免費連接埠檢測器 · 真實的伺服器端 TCP 掃描
This is a real server-side TCP scan: HackMyIP opens a TCP connection to each port from Cloudflare's network and reports the actual result. Open means the TCP handshake completed (a service is listening). Closed means the connection was actively refused or reset. Filtered means no response within 2.5 seconds, typically a firewall silently dropping packets. Blocked means Cloudflare blocks outbound connections to that port (port 25/SMTP). Leave the field blank to scan your own public IP, or enter any public host or IP you are authorized to test. Only scan networks you own or have permission to test.
| 連接埠 | 服務 | 用途 |
|---|---|---|
| 22 | SSH | Encrypted remote terminal access |
| 80 | HTTP | Unencrypted web traffic |
| 443 | HTTPS | Encrypted web traffic |
| 21 | FTP | File transfer |
| 25 | SMTP | Outgoing email (often blocked by ISPs) |
| 53 | DNS | Domain name resolution |
| 3389 | RDP | Windows Remote Desktop |
| 3306 | MySQL | Database server |
| 8080 | HTTP-alt | Proxies and development servers |
Windows (PowerShell)
- Test a remote port:
Test-NetConnection -ComputerName example.com -Port 443— TcpTestSucceeded : True means the port is open. - List ports your PC is listening on:
netstat -ano.
macOS / Linux
- Test a remote port with netcat:
nc -zv example.com 443— "succeeded" means open. - Or use nmap:
nmap -p 443 example.com. - List local listening ports:
ss -tuln(Linux) orlsof -i -P | grep LISTEN(macOS).
Any OS (quick check)
- Run
telnet example.com 443. A blank screen or connection message means the port is open; an immediate error means it is closed or filtered.
常見問題
什麼是開放連接埠?
Open ports are network endpoints that accept incoming connections. Each port is associated with a specific service (e.g., port 80 for HTTP, port 443 for HTTPS, port 22 for SSH). Open ports allow legitimate traffic but can also be entry points for attackers if the services behind them have vulnerabilities or are misconfigured. Firewalls control which ports are accessible.
Is port scanning legal?
Port scanning your own network and systems is legal. Scanning networks you own or have explicit permission to test is standard practice in security assessments. However, scanning third-party systems without authorization may violate computer crime laws in many jurisdictions. Always ensure you have proper authorization before scanning any network that is not your own.
How do I close open ports?
To close open ports: configure your firewall to block unwanted incoming connections, stop unnecessary services running on those ports, use your router's built-in firewall settings to restrict access, and disable port forwarding rules you no longer need. On Windows, use Windows Firewall; on Linux, use iptables or ufw; on macOS, use the built-in firewall in System Preferences.