Check if a port is open from the internet
Enter a port and this checker tries a TCP connection to it on your public IP address, from our server. You see whether the port is open, closed or timed out, how long the answer took, and what to fix when it isn't open.
Your public IP
The address your request comes from. The checker only ever tests this one.
Looking it up… Couldn't read it. You can still run the check.
On a VPN or iCloud Private Relay? Then this is the VPN's address, and the check tests a port on the VPN server. Switch it off and reload.
curl -4 -d port=3000 https://expose.dev/open-port-checker/check
On Windows, type curl.exe instead of curl. The answer has the same fields as the result here.
That isn't a public IPv4 address, so there is nothing the internet could connect to.
Pick a port, or enter one and press Check port. The answer takes up to 4 seconds.
Connecting to port …
Port is open.
accepted a TCP connection on port in ms. A program on your connection listens on this port, and the internet can reach it.
Anyone can connect to it now, scanners included. Check that the program behind it is the one you expect, and delete the forward when you're done testing.
Port is closed.
refused the connection after ms. The connection reached a device on your connection, but nothing accepted it on port .
Most often nothing listens on the port, or the program only listens on 127.0.0.1. Start with step 1 below. If you haven't forwarded the port yet, the router itself may have refused it (step 3).
Port is closed.
After ms, a router on the way answered that can't be reached on this port. A firewall rule that rejects connections usually sends that answer.
Start with the firewall on your computer (step 2), then the router (step 3).
Port timed out.
No answer from within seconds. Something on the way drops the connection without a reply.
Most often the router has no forward for the port (step 3), or you're behind CGNAT or double NAT (step 4). A firewall that drops connections looks the same.
The check couldn't finish.
The connection to port failed in a way that doesn't say whether the port is open. Try again in a minute.
That's the limit for now. The checker allows 10 checks a minute and 100 a day per IP address. Try again in .
Your request came over IPv6. The checker tests IPv4. Use the curl -4 command above to run the check over IPv4.
Nothing to test. Your request came from , which isn't a public IPv4 address.
That isn't a port. Enter a whole number from 1 to 65535.
The check didn't go through. Check your connection and try again.
The checker doesn't log or store the ports you test or the results. It uses your IP address to run the check and to count your checks for the rate limit, and that counter expires after 24 hours at most. It sets no cookies, and it can't test any address but your own.
How to check if a port is open
"Is my port open" covers two questions. Is a program on your computer listening on the port? And can a connection from the internet reach it? A port can pass the first test and fail the second, because your router, a firewall or your ISP sits in between. Answer them in that order.
Is anything listening on the port?
Run one of these on the computer that should accept the connection. On Windows, in Command Prompt:
netstat -ano | findstr :3000
A line with LISTENING means a program accepts connections on the port. The last
column is its process ID, which Task Manager shows on the Details tab. findstr matches text, so a search for
:80 also finds :8080. In PowerShell,
Get-NetTCPConnection -LocalPort 3000 -State Listen lists only that port.
On macOS and Linux:
sudo lsof -iTCP:3000 -sTCP:LISTEN
lsof prints the program and its process ID. Without sudo it only shows your own
programs. On Linux, ss -tlnp | grep :3000 does the same: -t for TCP,
-l for listening sockets, -n for numbers instead of names
and -p for the process.
Then read the local address. 127.0.0.1:3000, [::1]:3000
or localhost:3000 means the program only accepts connections from the same computer.
0.0.0.0:3000, *:3000 or [::]:3000
means it listens on every network interface. Port forwarding only works with the second kind.
Can another computer reach it?
Run this on a second computer, with the first one's IP address. On Windows, in PowerShell:
Test-NetConnection 192.168.1.20 -Port 3000
TcpTestSucceeded : True means the port is open. False means the connection was refused or timed out.
On macOS and Linux, use netcat:
nc -zv 192.168.1.20 3000
-z connects without sending data and -v prints the outcome.
"succeeded" or "open" means a program accepted the connection. "Connection refused" means the computer answered but
nothing listens. No answer until the timeout means a firewall drops the connection. Add -w 5
to give up after 5 seconds. With nmap installed, nmap -p 3000 192.168.1.20 reports
the port as open, closed or filtered. Filtered is what this checker calls timed out.
Check it from outside your network
A test inside your own network never passes through the router's internet side, so it says nothing about port forwarding. Pointing the same commands at your own public IP doesn't settle it either. Many routers don't support NAT loopback, also called hairpin NAT, so a connection from inside to your public IP fails even when the forward works. Test from outside: from a server you have, from a laptop on a phone's mobile data, or with the checker at the top of this page.
How the checker works
When you press Check port, our server opens a TCP connection to that port on the IPv4 address your request came from. It sends no data and closes the connection as soon as it is up. It waits 4 seconds at most. The time shown runs from the start of the connection to the answer, so it includes the network path from our server to you.
| Result | What happened | What it tells you |
|---|---|---|
| Open | The TCP handshake completed. | A program accepts connections on the port, and the internet can reach it. |
| Closed | Your IP answered with a refusal, or a router on the way answered that the host can't be reached. | The connection got somewhere, but nothing accepted it. Start with what listens on the port. |
| Timed out | No answer within 4 seconds. | Something on the way drops the connection: the router, a firewall, CGNAT or your ISP. |
The checker only tests the address your request comes from. You can't type in another host, so nobody can use it to scan someone else's network. It tests TCP over IPv4, one port per check. Each IP address gets 10 checks a minute and 100 a day. With a VPN on, it tests the VPN server's address, not yours.
Why a port is closed, and what to do next
Go through these in order. Each one is a place where the connection can stop on its way from the internet to your program. A refusal usually points to step 1. A timeout usually points to step 3 or 4.
-
1. Nothing is listening on the port
A forward passes the connection on, but a program on your computer has to accept it. Start the server, then check that it listens on the port. On macOS or Linux:
lsof -i :3000On Windows:
netstat -ano | findstr :3000No output means nothing listens. If the address is
127.0.0.1orlocalhost, the program only takes connections from the same computer. Bind it to0.0.0.0instead. For a Vite dev server that's--host, and most servers have a host or bind setting. -
2. A local firewall is blocking it
The firewall on your computer can stop a connection after the router has passed it on. A firewall that drops it makes the check time out, and one that rejects it makes it say closed. On Windows, allow the port in PowerShell as administrator:
New-NetFirewallRule -DisplayName "Port 3000" -Direction Inbound -Protocol TCP -LocalPort 3000 -Action AllowOn Linux with ufw, run
sudo ufw allow 3000/tcp. On macOS, the firewall works per app: open System Settings, then Network, then Firewall, then Options, and allow incoming connections for the program. -
3. The router has no forward for the port
Your router only passes an incoming connection to a computer when a rule tells it to. Open the router's admin page and look for Port forwarding, Virtual server or NAT. Forward TCP port 3000 to your computer's local IP address and the same port. Find the local address with
ipconfigon Windows,ipconfig getifaddr en0on macOS, orip -4 addron Linux.Give the computer a DHCP reservation in the router. Otherwise its address can change, and the forward then points at nothing. Many home routers drop connections to ports they don't forward, so a missing forward usually shows up as timed out. A forward to the wrong address, or to a computer that is asleep, looks the same.
-
4. Double NAT or CGNAT
If the forward is right and the check still times out, your router may not hold your public IP. Behind carrier-grade NAT (CGNAT), your ISP shares one public IPv4 address among many customers, and incoming connections stop at the ISP before they reach your router. With double NAT, a modem or a second router sits in front of yours, and the forward has to exist on both. The free CGNAT check compares your router's WAN IP with your public IP and tells you which one you have.
-
5. Your ISP blocks the port
Some ISPs block incoming connections to common server ports on home plans, port 25 most often and port 80 on some. To find out, forward a high port such as 8080 the same way and check it. If 8080 is open and 80 times out with the same setup, your ISP filters port 80. Its support or its terms of service can confirm it.
IPv6 works differently
This checker tests IPv4. With IPv6 there is usually no NAT: each device gets its own global address, so there is nothing to
forward. The router's IPv6 firewall blocks incoming connections instead, and you allow the port there for the device's IPv6
address. An open IPv4 port says nothing about IPv6, and the other way round. To test IPv6, run
nc -6 -zv YOUR-IPV6-ADDRESS 3000 from a computer outside your network that has IPv6.
Or don't open a port at all
Expose connects out from your computer to the Expose server, and visitors reach your site through that connection. Your router, your firewall, CGNAT and your ISP only see an outgoing connection, so nothing has to be forwarded or allowed in. One command gives a local site a public HTTPS URL that works through firewalls and VPNs:
expose share http://localhost:3000
Your dev server can keep listening on 127.0.0.1, because Expose connects to it on your machine.
For a TCP service that doesn't speak HTTP, such as SSH or a Minecraft Java server, expose share-port 3000
gives you a public host and port. Sharing TCP ports needs Expose Pro or Team. Sharing HTTP sites also works on the free Hobby plan,
with a time limit per connection.
The sharing docs list every option. For when a tunnel,
port forwarding or a real host fits, read hosting from localhost,
and for a router you can't sign in to, port forwarding without router access.
curl -fsSL https://expose.dev/install.sh | sh
irm https://expose.dev/install.ps1 | iex
A worked example
You run a Vite dev server on port 5173 and forward port 5173 on your router to your laptop at
192.168.1.20. The first check says timed out after 4 seconds. The router's list of
forwards is empty, because the rule never saved. You add it again and check: closed, after 31 ms. The connection reaches
the laptop now and gets refused there.
sudo lsof -iTCP:5173 -sTCP:LISTEN shows the server on localhost:5173.
Vite listens on localhost unless you tell it otherwise, so connections to the laptop's network address get turned away. You
restart it with npx vite --host, which listens on all addresses, and the check says open
in 29 ms. When the demo is over, you delete the forward.
Questions
What ports do I have open?
On your computer, list the ports programs listen on: netstat -ano | findstr LISTENING on Windows, sudo lsof -iTCP -sTCP:LISTEN -P -n on macOS, and ss -tlnp on Linux. That shows what listens, not what the internet can reach. A port is only open from outside when your router forwards it and no firewall blocks it. Test each port with the checker on this page.
How can I tell if port 8080 is open?
Pick 8080 in the checker and run it. Open means a program on your connection accepted a TCP connection on 8080 from the internet. On the computer itself, lsof -i :8080 or netstat -ano | findstr :8080 shows whether anything listens. From another machine, run nc -zv YOUR-IP 8080, or Test-NetConnection YOUR-IP -Port 8080 in PowerShell.
How do I test if port 22 is open?
Pick 22 in the checker. Open means an SSH server answers on your public IP, for you and for every scanner on the internet, so allow key logins only. From another machine, nc -zv YOUR-IP 22 gives the same answer. Closed with your SSH server running usually means it listens on another port, or a firewall rejects the connection.
How do I test if port 587 is open?
Port 587 is the mail submission port your mail program uses to send through a provider. So the question is usually whether you can reach the provider, not whether a port on your connection is open. Run Test-NetConnection smtp.example.com -Port 587 in PowerShell, or nc -zv smtp.example.com 587 on macOS or Linux, with your provider's SMTP host. A timeout means a firewall on your network blocks outgoing connections to it.
Why does my port show closed after I forwarded it?
Usually because nothing listens on that port when you test, or the program only listens on 127.0.0.1. A forward only passes connections on, and a program on the computer has to accept them. If the check times out instead, look at the forward itself, CGNAT and your ISP.
Can I check a port on another IP address or a server?
Not with this checker. It only connects to the IP address your request comes from, so nobody can use it to scan someone else's network. To test a server you run, use nc -zv HOST PORT or Test-NetConnection HOST -Port PORT from your own computer.
Can it check UDP ports?
No, only TCP. An open UDP port and a filtered one usually both stay silent, so a single probe can't tell them apart. Test a UDP service with its own client, such as the game whose server you host.
Does a VPN change the result?
Yes. With a VPN, iCloud Private Relay or a proxy on, your requests come from the VPN's address, so the check tests a port on the VPN server. Switch it off and run the check again.
Is it safe to leave a port open?
Anyone can connect to an open port, including the scanners that sweep the IPv4 internet for open ports. Whether that is safe depends on the program behind it. An up-to-date web server is fine. A dev server with debug output or a database without a password is not. Delete the forward once you are done testing.