Port Forwarding 25565 Not Working on Windows 11? (Ultimate Fix Guide)

Published: September 5, 2026
Last Updated: September 5, 2026
4 min read
Share:
Port Forwarding 25565 Not Working on Windows 11? (Ultimate Fix Guide)
Port 25565 closed even after router forwarding? Learn how to fix Windows Defender Firewall, local IPv4 mismatch, and ISP CGNAT issues blocking your server.
If port forwarding 25565 is not working on Windows 11, the connection is usually blocked by Windows Defender Firewall, a dynamic local IPv4 mismatch, or your ISP enforcing Carrier-Grade NAT (CGNAT). Opening a port requires a perfect chain of trust from your local machine to the global internet.

Fixing this requires adding specific inbound/outbound TCP and UDP rules in your firewall, locking your PC to a static IP address, and verifying your router's WAN IP. Here is the ultimate technical troubleshooting checklist to get your server online.

Why Does Port 25565 Keep Timing Out? You logged into your router admin panel, typed 25565 into the port forwarding section, and saved the settings. Yet, port checker tools still report it as "Closed."

Port 25565 is the default port for Minecraft Java Edition. Port forwarding simply tells your router: "If internet traffic arrives looking for port 25565, send it directly to this specific computer." If that specific computer (your Windows 11 PC) changes its IP address, or if its internal firewall rejects the traffic, the connection dies instantly.

Before tweaking any settings, run a live connection test to confirm the blockage. Use the TraceMyIPOnline Open Port Scanner by visiting https://www.tracemyiponline.com/port-checker. Enter 25565 in the port scanner section to confirm if the port is genuinely blocked from the outside.

[Insert Your Data Here: Share a snippet from a server console log where a connection attempt timed out. Explain what this specific error code meant when you diagnosed it.]

Step 1: Configure Windows Defender Firewall Windows 11 treats all unrequested incoming internet traffic as a security threat. You must manually whitelist port 25565.

  1. Press the Windows key and search for Windows Defender Firewall with Advanced Security.

  2. Click Inbound Rules on the left panel, then select New Rule on the right panel.

  3. Choose Port as the rule type and click Next.

  4. Select TCP, and type 25565 into the specific local ports box.

  5. Select Allow the connection.

  6. Check all three network profiles (Domain, Private, Public) to ensure it works regardless of your network type. Name the rule "MC Server TCP".

  7. Crucial Step: You must repeat this exact 6-step process, but select UDP on step 4. TCP handles the game data, but UDP handles server queries.

Step 2: Set a Static IPv4 Address Routers forward ports to a specific local IP (e.g., 192.168.1.50). If you restart your PC, the router's DHCP server might give you a new IP (e.g., 192.168.1.51). Your port forwarding will instantly break.

  • Open Command Prompt and type ipconfig.

  • Note down your IPv4 Address, Subnet Mask, and Default Gateway.

  • In Windows 11, go to Settings > Network & internet. Click on your connection (Wi-Fi or Ethernet).

  • Scroll to IP assignment and click Edit. Change it from Automatic (DHCP) to Manual.

  • Toggle IPv4 on, and type in the details you noted from the command prompt. Your PC will now permanently keep this IP.

Step 3: Check for Double NAT (Modem vs. Router Conflict) If you have a separate modem and router, you might suffer from Double NAT. If your modem is acting as a router, it blocks the traffic before it even reaches your actual router. Log into your primary router. Look for the "WAN IP" or "Internet IP." If this IP address starts with 192.168.x.x, 10.x.x.x, or 172.16.x.x, your router is plugged into another router. You must log into your ISP's modem and set it to Bridge Mode.

Step 4: Identify and Bypass ISP CGNAT If your firewall is open, your IP is static, and there is no Double NAT, your Internet Service Provider is likely blocking you using Carrier-Grade NAT (CGNAT).

CGNAT means you share a single public IP address with hundreds of other customers. You do not actually have a unique public address, making port forwarding mathematically impossible.

  • Use the TraceMyIPOnline IP Lookup Tool at https://www.tracemyiponline.com/ to find your exact Public IP.

  • Compare this to the "WAN IP" listed in your router's admin dashboard.

  • If the two IPs do not match perfectly, you are behind CGNAT.

[Insert Your Data Here: Show a screenshot comparing a tracemyiponline IP result and a router WAN status page that displays conflicting IPs, visually demonstrating CGNAT in action.]

How to Bypass CGNAT If your ISP uses CGNAT, you cannot fix it in your router settings. You must use external routing:

  1. Request a Static IP: Call your ISP and ask to purchase a static, dedicated public IPv4 address.

  2. Use a Tunneling Service: Software like Ngrok or Cloudflare Tunnels creates a secure tunnel from your PC to the outside world, bypassing the router entirely.

  3. Port Forwarding VPN: Purchase a specialized VPN (like PureVPN or TorGuard) that offers dedicated IP and manual port forwarding features at the VPN server level.