← Back to Home

Port Checker

/port/:host/:port
Test if a TCP port is open on a remote host. Supports IPv4, IPv6, and hostnames. Attempts HTTP/HTTPS connection and reports status, response time, and HTTP status code.
Try it now

Parameters

host path or query
Hostname, IPv4, or IPv6 address (bracketed, unbracketed, or URL-encoded)
port path or query
Port number (1-65535)

Examples

curl
curl https://tcpdata.com/port/google.com/443
curl
curl https://tcpdata.com/port/8.8.8.8/53
curl
curl https://tcpdata.com/port/2001:4860:4860::8888/443
curl
curl 'https://tcpdata.com/port?host=2001:4860:4860::8888&port=443'
curl
curl https://tcpdata.com/port/%5B2001:4860:4860::8888%5D/443

Notes

Response fields: host, port, status (open/closed/timeout), response_time_ms, http_status, protocol

IPv6 formats supported: unbracketed (2001::8888), bracketed ([2001::8888]), URL-encoded (%5B2001::8888%5D)

Query parameter format recommended for IPv6: ?host=2001:4860:4860::8888&port=443

Protocol: HTTPS used for ports 443 and 8443, HTTP for all others

Error codes: 400 (invalid format/port), 403 (blocked host), 500 (connection error)

Security: Private IPs (10.x, 172.16-31.x, 192.168.x), localhost, and cloud metadata endpoints blocked

Timeout: 5 seconds maximum per connection attempt