Is My Game Server Port Open? How to Check Before Your Friends Try to Join
You set up a game server. Minecraft, Valheim, maybe a FiveM server for your friends. It runs fine on your own PC. Then your friends type in your address, hit join, and get nothing but a spinning wheel or a plain "can't connect". Nine times out of ten, the port is the problem, not the game or their internet. Here's how to check it in the right order, so you find the broken link instead of guessing.

What "open" actually means
A port is just a numbered door on your connection. Your game server listens behind one of them, and players knock on that door to get in. When a port is "open", three things are all true at once: the server is running and listening, your router forwards traffic on that port to the PC running the server, and no firewall blocks it on the way in. Miss any one of the three and your friends stay locked out. That's why the order of the checks matters: a single "closed" result tells you something failed, never where.
Step 1: Is the server even listening?
Before you touch the router, check the server itself. A port with nothing behind it stays closed no matter how perfect your forwarding rule is.
On Windows, run:
netstat -ano | findstr :25565
On Linux or macOS, run:
ss -tlnp | grep 25565
Swap in your game's port. If you see a LISTEN line, the server is up and holding the door open. If nothing comes back, the server isn't running, it crashed, or it's listening on a different port than you think.
Check one more thing: the address. If it says 127.0.0.1, the server only talks to itself. You want 0.0.0.0, which means "listen on every network interface", or your PC's LAN address, like 192.168.1.20. Fix that in the server config and restart it.
I ran this exact test while writing this post. I started a test server on port 18080: it answered in about 2 milliseconds, showing LISTEN on 0.0.0.0:18080. I stopped it and tried again: connection refused, exit code 7. Same port, same machine, two different answers. The port didn't change. The program behind it did.
Step 2: Check the port from outside your network
Your server is listening. Now the real test: can the internet reach it? This check has to come from outside your home network. Testing from your own PC, or your phone on the same Wi-Fi, proves nothing, because that traffic never passes through the port forward.
Grab your public IP first: our What Is My IP tool shows it in one click. Then open the Port Checker, type in that IP and your game's port, and hit check. The tool knocks on the door from the internet, the same way your friend's game would. If you want the textbook background on how forwarding works, Wikipedia's port forwarding article covers it well.
Two rules. The server must be running while you test: a perfect forwarding rule means nothing with no program behind it. And test the exact port your game uses. Minecraft Java uses 25565, Bedrock uses 19132, and the table further down has the common ones.
Prefer watching? This short explainer walks through ports, NAT and port forwarding visually.
Step 3: Read the result: open, closed or filtered
The checker gives you one of three answers, and each one points at a different part of your setup.
- Open. Something accepted the connection. The router passed it on, the firewall let it in, and a program answered. Your port forward works. If friends still can't join, they may have the wrong address or port.
- Closed. The connection reached your side and got refused: nothing is listening on that port. Either the server isn't running, it listens on another port, or the forward points at the wrong PC.
- Filtered. Silence. No answer at all. A firewall dropped the probe, or there's no forwarding rule, or your provider blocks the port. Filtered doesn't mean the server is broken. It means the traffic never arrived.

The UDP trap most guides skip
Here's my blunt take: most "check if a port is open" tools only test TCP, and most game servers run on UDP. That mismatch wastes a lot of evenings.
TCP starts every connection with a handshake, so a checker gets a clear yes or no. UDP has no handshake: you send a packet and hope. A closed port may answer "unreachable", an open one may reply or ignore a packet it doesn't recognise. Silence can mean open, or a firewall ate the packet. A TCP check on a UDP port tells you almost nothing.
So how do you test a UDP game port for real? Ask a friend to connect and watch the server log while they try. If their attempt arrives, the port is open and the problem is somewhere else. If nothing arrives, the traffic is stuck at the router, the firewall, or your provider.
Common game server ports
Grab the right port first. These are the defaults, and your server config may have changed them.
- Minecraft Java: 25565, TCP
- Minecraft Bedrock: 19132, UDP
- Counter-Strike 2: 27015, UDP for the game, TCP for RCON
- Valheim: 2456-2457, UDP
- Rust: 28015 (game), 28016 (RCON), UDP and TCP
- FiveM: 30120, TCP and UDP
Still closed? Check these four culprits
- Your PC's local IP changed. Routers hand out local addresses like 192.168.1.20, and they can change after a restart, leaving your forward rule pointing at nothing. Set a DHCP reservation so the server PC keeps the same address.
- The rule uses the wrong protocol. A TCP-only rule does nothing for a UDP game. Forward UDP, or pick "both" if your router offers it.
- Double NAT. You have an ISP modem-router and your own router behind it, and both do NAT. Forward on both, or put the ISP box in bridge mode.
- CGNAT. Some providers share one public IP between many homes. Compare the WAN address shown in your router with the public IP from our What Is My IP tool. If they don't match, you're behind CGNAT, and no router setting will open the port. Ask your ISP for a public IP, or use a tunnel or a VPN that supports port forwarding.
One related check: if a proxy sits between you and the game, run it through our Proxy Checker first. A dead proxy looks exactly like a closed port from the player's side.

The 5-minute checklist
Next time your friends can't join, run this in order.
- Server running? Confirm it listens with netstat or ss.
- Firewall open for the right port and protocol?
- Router forward to a fixed local IP, right protocol?
- Outside check with the Port Checker while the server runs.
- UDP game? Get a friend to connect and watch the log.
Five steps, five minutes, and you'll know which link is broken. For the general version of this check, see Is This Port Open?
Comments
Loading comments…
Leave a comment