Port forwarding not working? How to check a port is open
You want to reach something at home or in the office from outside: a CCTV recorder, a Plex server, a game server, a NAS. You've added a port forward on the router, but it doesn't work, and the router gives no clue why. Here's how to find out where it's going wrong.
What port forwarding does
Your router has one public IP address facing the internet, shared by every device behind it. When a connection arrives from outside, the router has no idea which device it's for, so it drops it. A port forward is a rule that says "connections arriving on port 32400, send to the Plex server at 192.168.1.50".
For it to work, every link in the chain has to be right: the connection must reach your router, the router must forward it to the right device, and the device must accept it. The checks below go through each link.
Test from outside, not from inside
A very common trap: testing from a computer on the same network. Many routers don't send your own traffic back in through a port forward (a feature called NAT loopback or hairpinning), so it looks broken even when it works perfectly for everyone outside.
Use our Port Checker, which tests your connection from our server on the internet, or try from a phone with Wi-Fi switched off. The checker gives one of three results:
- Open: the connection reached a device that accepted it. Your forward works.
- Closed: something answered and refused. The connection reached your router, but there's no forward for that port, or the device it points to isn't listening on it.
- No response: nothing answered at all. A firewall is silently dropping it, the device is off, your provider blocks the port, or the connection never reached your router (see CGNAT below).
1. Is your router really on the internet? (CGNAT)
Log in to your router and find its WAN or internet IP address. Then compare it with the address on our home page.
- They match: good, your router has a real public address. Carry on.
- They're different, especially if the router's starts with
100.64to100.127, or is a private one like10.x,172.16–31.xor192.168.x: your router isn't directly on the internet.
If the router has a 100.64–100.127 address, your provider uses CGNAT
(carrier-grade NAT): one public address shared by many customers. Port forwarding on your router can never work,
because incoming connections stop at your provider's equipment. It's common on mobile and 4G/5G broadband, and with
some smaller fibre providers. Your options are to ask your provider for a public or static IP address (some offer it
free on request, others charge), or use a service designed to work without port forwarding, such as a VPN or remote
access service that connects outwards.
If the router has a 192.168.x or 10.x address, you probably have two
routers, for example your provider's router with your own plugged in behind it. Either forward the port on
both, or put the provider's router into "modem" or "bridge" mode so only yours does the routing.
2. Is the forward pointing at the right device?
- Check the internal IP address in the forward matches the device's current address.
- Give that device a fixed address. Most devices get their address automatically and it can change after a restart, quietly breaking the forward. Set a DHCP reservation on the router (often under "LAN" or "address reservation") so it always gets the same one.
- Check the port numbers. Some routers ask for an external and an internal port; for most uses, they should be the same.
- Check TCP or UDP. Each service uses one or the other (or both). If in doubt, choose "Both". Our checker tests TCP; UDP can't be reliably tested from outside, so a UDP-only service like WireGuard can work even when the checker says "No response".
3. Is the device listening, and is its firewall letting it in?
- Is the service running? If the app or service is stopped, or set to a different port than you think, the result will be "Closed". Check its settings for the port number it uses.
- Is it accepting outside connections? Some apps only listen on the local network by default, or have a "remote access" option to switch on.
- The device's own firewall. Windows Defender Firewall blocks incoming connections unless a rule allows them, and NAS boxes and Linux servers often have their own firewall too. Add a rule for the port, or test briefly with the firewall off to see if that's the cause (then switch it back on and add a proper rule).
4. Is something in between blocking it?
- The router's own firewall or security features can override forwards on some models.
- Your internet provider. Some block particular ports on home connections, most often port 25 (email). Try the service on a different, higher port to rule this out.
- Your public IP address changed. Most home connections get a new public address from time to time. If you connect by IP address, it may simply have moved. A dynamic DNS service (many routers have it built in) gives you a name that always points to your current address.
What about IPv6?
If you have IPv6 (our home page shows whether you do), each device has its own public address and there's no port forwarding as such. Instead, the router's IPv6 firewall blocks incoming connections, and you open a port for a specific device's IPv6 address. It also means the CGNAT problem above doesn't apply to IPv6, if your provider gives you it.
A word on security
Every port you open is a door onto your network that the whole internet can knock on, and automated scanners do, constantly. A few rules worth sticking to:
- Never forward Remote Desktop (port 3389) straight to a PC. It's one of the most attacked services on the internet. Use a VPN to connect to your network first, then use Remote Desktop over that.
- Only open what you need, and remove forwards you no longer use.
- Keep the device you're exposing up to date, and change any default passwords. CCTV recorders are a favourite target.
- Turn off UPnP on the router if you don't need it. It lets devices open ports by themselves, without asking you.
- Better still, consider a VPN such as WireGuard, which many routers and NAS boxes now support. You open one port (or none, with some services), and everything else stays private.
Once you're finished, run the Port Checker against the ports you expect to be closed too, to make sure nothing is open that shouldn't be.