HackMyIP

連接埠掃描

真實的伺服器端TCP連接埠掃描

準備掃描
以JSON取得此結果 → GET /api/ports?host=1.1.1.1&ports=80,443  ·  API文件
關於連接埠掃描

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.

常見問題

什麼是開放連接埠?

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.