Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Free tools / Port checker
Free tool · no sign-up

Port checker open, closed or filtered?

Test one TCP port on a public server from outside your network: is anything listening, and does the firewall let it through?

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

  1. The service listens only on 127.0.0.1 (localhost). PostgreSQL does this by default (listen_addresses defaults to localhost); for MySQL check bind-address.
  2. A cloud firewall or security group doesn't allow the port from the internet.
  3. A firewall on the server itself (ufw, firewalld, Windows Firewall) blocks it.
  4. 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

ErrorWhat the docs sayThis 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 servercurl: "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 reachedcurl: "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