My IP Ports
GAMING & HOMELAB GUIDE

How to Port Forward & Test Port 25565 for a Minecraft Server

Step-by-step walkthrough to host a multiplayer Minecraft Java (TCP 25565) or Bedrock (UDP 19132) dedicated server from home: router NAT configuration, static LAN DHCP reservations, Windows Defender firewall unblocking, and live edge reachability verification.

8 min read • Default Port: TCP 25565 (Java) / UDP 19132 (Bedrock) • Verified for Minecraft 1.20+
Packet Trajectory: External Friend to Your Local Server
1. Internet Friend → Connects to your Public WAN IP : 25565 → 2. Your Home Router
2. Router NAT Rule → Forwards packet to 192.168.1.X : 25565 → 3. Windows PC / Server
3. Host Firewall → Inbound rule allows packet into java.exe → 4. Server World Joined!
STEP 1

Verify Minecraft `server.properties` Configuration

Open the server.properties file inside your Minecraft server root directory using Notepad or any text editor.

# Ensure the port is 25565 and server-ip is BLANK
server-port=25565
query.port=25565
server-ip=
# Leaving server-ip empty instructs Java to bind to 0.0.0.0 (all interfaces)
Critical Pitfall: Never enter your Public WAN IP or your Local 192.168.x.x IP inside server-ip=. If your computer IP changes, the server will crash on launch with FAILED TO BIND TO PORT. Leaving it blank binds cleanly to all interfaces.
STEP 2

Find Your Internal Private IPv4 Address

Your router needs to know which specific computer on your local home Wi-Fi/Ethernet network is running the Minecraft daemon.

Find Local IP & Default Gateway (Router IP) cmd
ipconfig | findstr /i 'IPv4 Default'

Note down your IPv4 Address (typically 192.168.1.X or 10.0.0.X) and your Default Gateway (e.g. 192.168.1.1).

STEP 3

Configure Port Forwarding in Your Router Settings

Open your web browser and navigate to your Default Gateway IP (e.g., http://192.168.1.1 or http://192.168.0.1). Log into your router administration portal and locate the Port Forwarding / Virtual Server / NAT menu.

Router Setting Field Required Value Technical Explanation
Service Name / Description Minecraft Friendly label for identification.
Protocol TCP (or BOTH TCP/UDP) Minecraft Java exclusively uses TCP. Bedrock uses UDP.
External / WAN Port 25565 The port external players enter.
Internal / LAN Port 25565 The port your server daemon listens on.
Internal IP / Device Your Local IPv4 (from Step 2) e.g., 192.168.1.150
STEP 4

Allow Port 25565 Through Windows Defender Firewall

Even with router forwarding active, Windows will silently discard inbound packets from foreign IPs unless explicitly permitted in Windows Defender Firewall. Run PowerShell as Administrator:

Allow Inbound TCP 25565 (PowerShell Admin) powershell
New-NetFirewallRule -DisplayName 'Minecraft Server Port 25565' -Direction Inbound -LocalPort 25565 -Protocol TCP -Action Allow

Also ensure Java itself is allowed through the firewall:

Verify Java Firewall Permissions powershell
Get-NetFirewallApplicationFilter | Where-Object { $_.Program -like '*javaw.exe*' -or $_.Program -like '*java.exe*' }
STEP 5

Verify Port 25565 Online with onmyport.com

Start your Minecraft server and wait until the console prints Done (...s)! For help, type "help". Then verify whether our edge probes can complete a full 3-way TCP handshake:

Result: OPEN

SYN-ACK received. Your friends can join immediately using your Public WAN IP!

Result: CLOSED

Router forwarded the packet, but Java is stopped or bound to 127.0.0.1.

Result: FILTERED

Packets dropped. Check Windows Firewall or CGNAT restrictions.

Still Filtered? Check for Carrier-Grade NAT (CGNAT)

If your router port forwarding rule and firewall are correct but onmyport.com continues to report FILTERED, your ISP likely places you behind Carrier-Grade NAT (RFC 6598). Check your router WAN IP: if it begins with 100.64.X.X to 100.127.X.X, traditional port forwarding is blocked upstream. You can bypass this using a free Cloudflare Tunnel or Tailscale Funnel.

Test Port 25565 Right Now

Our online scanner automatically detects your public IP and performs a sub-second edge TCP reachability test.

Test Minecraft 25565