API & CLI Integration
Check open ports directly from your terminal or automation scripts using our REST API:
# Single port check via GET query
curl "https://justinmarty.com/portchecker/check?host=1.1.1.1&port=443"
# Multi-port batch check via JSON POST
curl -X POST "https://justinmarty.com/portchecker/api/check" \
-H "Content-Type: application/json" \
-d '{"host": "example.com", "ports": [80, 443, 22, 8080]}'
curl "https://justinmarty.com/portchecker/check?host=1.1.1.1&port=443"
# Multi-port batch check via JSON POST
curl -X POST "https://justinmarty.com/portchecker/api/check" \
-H "Content-Type: application/json" \
-d '{"host": "example.com", "ports": [80, 443, 22, 8080]}'
Standard Port Cheatsheet
| Port | Protocol / Service | Common Use Case |
|---|---|---|
| 21 | FTP | Unencrypted file transfer |
| 22 | SSH / SFTP | Secure shell remote server administration |
| 25 / 587 | SMTP / Submission | Email delivery and relaying |
| 53 | DNS | Domain name system lookup |
| 80 | HTTP | Standard World Wide Web traffic |
| 443 | HTTPS | TLS/SSL encrypted web traffic |
| 3306 | MySQL / MariaDB | Database client access |
| 3389 | RDP | Windows Remote Desktop Protocol |
| 5432 | PostgreSQL | PostgreSQL relational database |
| 6379 | Redis | In-memory caching and message broker |
| 25565 | Minecraft | Minecraft Java Edition game server |
| 32400 | Plex Media | Plex media streaming service |