One host and one port per check. Only check servers you own or have permission to test.
Open, closed or no answer
- Open: the server accepted a TCP connection. Something is listening and the firewall lets the connection through.
- Closed: the connection was refused or reset. The host is reachable but nothing listens on that port, or a firewall actively rejects it.
- No answer: nothing came back within 5 seconds. Usually a firewall silently drops the packets (filtered), or the host is down.
Common reasons a port shows closed
- The service listens only on
127.0.0.1(localhost). PostgreSQL does this by default (listen_addressesdefaults tolocalhost); for MySQL checkbind-address. - A cloud firewall or security group doesn't allow the port from the internet.
- A firewall on the server itself (ufw, firewalld, Windows Firewall) blocks it.
- Your home router doesn't forward the port to the right device.
Should this port be open at all?
Web ports (80, 443) and mail ports are meant to be public. Database and cache ports (3306, 5432, 6379, 27017, 1433) and remote desktop (3389) usually should not be reachable from the whole internet: allow only your app servers' addresses, or reach them through a VPN or SSH tunnel. If one of those shows open here, anyone on the internet can try to log in to it.
Limits of this checker
- Checks run from Cloudflare's network with the Workers
connect()API, so a firewall that allows only certain countries or addresses may answer differently for you. - Only the ports in the list. Port 25 (SMTP between mail servers) is not offered because Workers can't open outbound connections on port 25.
- IPv4 only. A host that has only an IPv6 address gets a clear 'can't test from here' answer instead of a guess. Hosts on Cloudflare's own network (including 1.1.1.1) can't be tested either.
- Hosts on Cloudflare's own network can't be tested: Workers aren't allowed to open TCP connections to Cloudflare IP addresses.
- Private, local and reserved addresses (like
192.168.x.x,10.x.x.x,127.0.0.1) are refused. The name is resolved once, the address is checked, and that same address is tested. - One port per request, a daily limit, and results cached for 60 seconds, so this can't be used to scan networks.
"Connection refused" vs "timed out": what your error means
| Error | What the docs say | This checker shows |
|---|---|---|
ECONNREFUSED (Connection refused) | Linux connect(2): "found no one listening on the remote address". Node.js: "the target machine actively refused it". | Closed |
curl exit code 7: Could not connect to server | curl: "Failed to connect() to host or proxy." | Closed, or the host is unreachable |
ETIMEDOUT (Connection timed out) | Linux connect(2): "Timeout while attempting connection". Node.js: the other side "did not properly respond after a period of time". | No answer |
curl exit code 28: Timeout was reached | curl: "The specified time-out period was reached". | No answer |
Refused is the easier one: the network path works, so start the service or make it listen on the right address (not only 127.0.0.1). Timed out points at a firewall, security group or routing that drops the packets, or a host that is down.
Related: what is my IP · DNS lookup · SSL checker · ping test
Sources
- Cloudflare Workers docs: TCP sockets (connect): developers.cloudflare.com/workers/runtime-apis/tcp-sockets/
- Cloudflare IP ranges: www.cloudflare.com/ips/
- IANA Service Name and Transport Protocol Port Number Registry: www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
- PostgreSQL docs: Connection settings (listen_addresses): www.postgresql.org/docs/current/runtime-config-connection.html
- connect(2), Linux manual page: man7.org/linux/man-pages/man2/connect.2.html
- Node.js docs: Errors (common system errors): nodejs.org/api/errors.html
- libcurl error codes: curl.se/libcurl/c/libcurl-errors.html