Port forwarding tester
Port Forwarding Test
Enter your public IP and the forwarded port, then run the test. Our server connects from the internet, through your router's port forwarding rule, to the device behind it. Open means the rule works end to end. Closed means the traffic arrived but nothing is listening. Filtered means a firewall, a wrong rule, your ISP, or CGNAT dropped it.
Check a forwarded port
Start the service on your device first, then test the port from outside.
Always confirm you have permission before scanning or testing endpoints you do not own.
- Tests from an external server, so you see exactly what the internet sees.
- Checks TCP and UDP in one run, with real probes for Minecraft Bedrock, Steam, DNS and more.
- Works for game servers, Plex, remote desktop, cameras and self-hosted apps.
- Free, no sign-up, no software to install.
Last updated:
How to test port forwarding
- 1
Start the service you forwarded
A port only shows as open when an application is listening on it. Launch the game server, Plex, SSH daemon or web server before you test.
- 2
Get your public IP address
Click Use current IP while you are on the same network as the device. The checker fills in the public address your router uses on the internet.
- 3
Enter the external port and run the check
Type the port from your forwarding rule (for example 25565) or pick a preset, then press Check port. The result comes back in a few seconds.
- 4
Read the TCP and UDP results
Most services use one protocol. Minecraft Java uses TCP, while Minecraft Bedrock, WireGuard and many games use UDP. Focus on the protocol your application actually uses.
What the port forwarding test result means
Each result describes where the connection stopped. Use it to decide which part of the path to fix.
| Result | What happened | What to do next |
|---|---|---|
| Open | The probe reached your device and the application accepted the connection (TCP) or replied (UDP). | Port forwarding works. If players or apps still cannot connect, check the address and port they use. |
| Closed | Your router forwarded the traffic, or answered itself, but nothing accepted the connection. | Start the service, confirm it listens on this port, and check that the rule points to the right local IP. |
| Filtered | No reply at all. A firewall, a missing rule, your ISP or CGNAT silently dropped the probe. | Check the router rule, the device firewall, and whether your router's WAN IP matches your public IP. |
| Open or filtered (UDP) | The UDP packet got no answer. Many UDP services stay silent unless they receive a valid request. | Watch the server log or a packet capture while you test. The UDP port checker explains how. |
Port forwarding not working? Check these in order
Port Checker probe
connects to 203.0.113.10:25565
Your router (public IP)
rule: 25565 → 192.168.1.20:25565
Your device
listening on 25565, firewall allows it
A forwarded port has to pass four checkpoints: your ISP, your router, the device's firewall and the application. Work from the device outward, because local problems are the most common and the easiest to fix.
1. Nothing is listening on the port
Confirm the application is running and bound to the right port. On Windows, run the first command in Command Prompt. On Linux use the second, and on macOS the third.
netstat -ano | findstr :25565
ss -tulpn | grep 25565
lsof -nP -iTCP:25565 -sTCP:LISTEN2. The rule points to the wrong local IP
Routers forward to a fixed internal address such as 192.168.1.20. If your device received a new address from DHCP, the rule now points at nothing. Check the current address with ipconfig (Windows) or ip addr (Linux), then create a DHCP reservation so it stays the same.
3. The device firewall blocks inbound traffic
Windows Defender Firewall, ufw, firewalld and macOS firewall all block unsolicited inbound connections by default. Allow the port for the right protocol:
New-NetFirewallRule -DisplayName "Game server 25565" -Direction Inbound -Protocol TCP -LocalPort 25565 -Action Allow
sudo ufw allow 25565/tcp4. Your router is behind CGNAT or another router
If the WAN IP on your router's status page is different from the public IP shown in the checker, another NAT sits in front of you. With carrier-grade NAT (an address between 100.64.0.0 and 100.127.255.255) your ISP owns the public address, so your rule never sees the traffic. Run the CGNAT check to confirm. With double NAT (an ISP modem-router plus your own router), put the ISP device in bridge mode or forward the port on both.
5. The rule uses the wrong protocol
Forwarding TCP does nothing for a UDP service. Choose TCP/UDP or Both when you are unsure, and verify UDP services with the UDP port checker.
6. Your ISP blocks the port
Many residential ISPs block inbound ports 25, 80, 135–139 and 445. Map a different external port (for example 8080 → 80) and test that one instead.
7. You tested from inside your own network
Connecting to your own public IP from inside the LAN relies on NAT loopback (hairpinning), which many routers do not support. Testing from outside, as this tool does, avoids that false negative.
How to check port forwarding with cmd, PowerShell or Terminal
Command-line tests are useful for checking the service locally, but they cannot prove that the internet can reach you. Run them on the device first, then confirm from outside with the checker above.
Windows PowerShell
Test-NetConnection opens a TCP connection and reports TcpTestSucceeded. It does not test UDP.
Test-NetConnection -ComputerName 192.168.1.20 -Port 25565Linux and macOS
Netcat checks TCP by default. The -u flag sends UDP, but a silent UDP service still looks the same as a blocked one.
nc -vz 192.168.1.20 25565
nc -vzu 192.168.1.20 19132Ports people forward most often
Use the exact ports from your application's settings. Defaults are listed here for reference. For background on each service, see the port guides.
| Service | Default port | Protocol | Notes |
|---|---|---|---|
| Minecraft Java | 25565 | TCP | Change server-port in server.properties to use another port. |
| Minecraft Bedrock | 19132 | UDP | IPv6 uses 19133 by default. |
| Plex Media Server | 32400 | TCP | Set a manual port in Remote Access if UPnP fails. |
| Remote Desktop (RDP) | 3389 | TCP | Avoid exposing it directly. Prefer a VPN. |
| SSH | 22 | TCP | Use key-based login and consider a non-default external port. |
| Web server | 80 / 443 | TCP (+UDP 443 for HTTP/3) | ISPs often block inbound 80. |
| Palworld | 8211 | UDP | Dedicated server default. |
| Valheim | 2456–2457 | UDP | Forward the whole range. |
| Steam / Source games | 27015 | UDP (+TCP for RCON) | Query port for server browsers. |
| WireGuard | 51820 | UDP | Silent by design, so expect open or filtered. |
| VNC | 5900 | TCP | Tunnel it over SSH or a VPN when possible. |
| Home Assistant | 8123 | TCP | Use HTTPS or a reverse proxy before exposing it. |
How this port forwarding test works
The check runs from our server on the public internet, never from your browser, so the result reflects what any outside client would experience.
- TCP: we attempt a full three-way handshake with a 5-second timeout. A completed handshake is open, a reset (RST) is closed, and no reply is filtered.
- UDP: for well-known ports we send a real request: a DNS query on 53, an NTP request on 123, a QUIC version probe on 443, a STUN binding request on 3478, a RakNet ping on 19132 and an A2S_INFO query on 27015. Other ports receive a short generic datagram.
- A UDP reply is open, an ICMP port-unreachable message is closed, and silence is open or filtered.
- Each visitor can run up to 10 checks per minute. Only test devices and networks you own or are allowed to test.
Is port forwarding safe?
Every forwarded port is an entry point that anyone on the internet can reach. It is safe enough when the application behind it is maintained and protected.
- Forward only the ports you need, and delete rules you no longer use.
- Never expose SMB, Telnet or unprotected admin panels. Put remote desktop and VNC behind a VPN such as WireGuard.
- Keep the exposed software patched and use strong, unique passwords or keys.
- Turn off UPnP if you do not need it, so apps cannot open ports without your knowledge.
Port forwarding test FAQ
How do I check if port forwarding is working?
Start the service on your device, then test your public IP and the forwarded port from outside your network with the checker above. Open means the rule works. Closed or filtered points to the service, the firewall, the rule, or CGNAT.
Why does my port still show closed after port forwarding?
Usually nothing is listening on the port, the rule points to an old local IP, or the device firewall blocks it. If the result is filtered rather than closed, also check for CGNAT, double NAT or an ISP block.
Can I test port forwarding from inside my own network?
Not reliably. Connecting to your own public IP from the LAN depends on NAT loopback, which many routers lack. An external test like this one avoids the problem.
Should I forward TCP or UDP?
Forward the protocol your application uses. Web servers, SSH and Minecraft Java use TCP. Minecraft Bedrock, WireGuard, and many game and voice servers use UDP. Choose both if the documentation says TCP/UDP.
Does port forwarding work behind CGNAT?
No. With carrier-grade NAT your ISP owns the public IPv4 address, so a rule on your router never receives inbound traffic. Ask your ISP for a public IP, use IPv6, or use a tunnel such as a VPS with frp or WireGuard.
How do I test Minecraft port forwarding?
Start your Minecraft server, choose Minecraft Java (25565, TCP) or Minecraft Bedrock (19132, UDP) in the port list, and run the check with your public IP. For Bedrock, an open UDP result confirms the server answered our RakNet ping.
Is it safe to leave a port forwarded?
It is reasonable for maintained services such as a patched game server or web server. Do not leave remote desktop, file sharing or admin panels exposed. Remove rules you no longer need.
References
- IANA Service Name and Port Number Registry — official list of registered port numbers.
- RFC 4787: NAT Behavioral Requirements for UDP — how home routers map and filter UDP traffic.
- RFC 6598: Shared Address Space for CGN — defines the 100.64.0.0/10 range used by carrier-grade NAT.
- Microsoft Learn: Test-NetConnection — reference for the PowerShell TCP test.