Minecraft Server Specifications
Unlike commercial hosting, local self-hosted Java servers require specific configurations to direct incoming player packets safely to the JVM runtime:
Java edition uses 25565. Bedrock edition uses 19132 (UDP).
Provide your public IP formatted as: [Your_Public_IP]:25565
Step-by-Step Diagnostic Resolution Flow
- 1
Assign a Static IP Address to Your Minecraft Server Host PC
Your computer must keep the same local IP address. If it changes, the port forwarding rules on the router will direct external players to the wrong machine. Open your router's DHCP reservation list and bind your computer's MAC address to a fixed local IP (like 192.168.1.100).
Expert Tip: On Windows, you can find your local IP and MAC address by typing 'ipconfig /all' in Command Prompt. - 2
Access Your Router Admin Console
Enter your router's default gateway IP address (typically 192.168.1.1) in your browser. Input your administrator credentials to access the settings dashboard.
- 3
Locate Port Forwarding Settings
Navigate to the Port Forwarding, Virtual Server, or Advanced NAT rules section within your router's configuration system.
- 4
Configure the Port 25565 Rule
Create a new rule with these specifications: Name: 'Minecraft Server', Protocol: 'TCP/UDP' (or Both), Internal Port: '25565', External Port: '25565', and IP Address: the static IP of your Minecraft host PC.
Expert Tip: Make sure both internal and external port fields are filled with 25565. - 5
Configure Windows Defender Firewall Exceptions
Even if your router redirects traffic, Windows Firewall may block incoming connections. Open Windows Security -> Firewall & Network Protection -> Advanced Settings. Create a new Inbound Rule for 'Port', specify 'TCP' and port '25565', select 'Allow the connection', and save. Repeat the process to create another Inbound Rule for 'UDP' on port '25565'.
Expert Tip: Select 'Java(TM) Platform SE binary' and ensure it has private/public access checked in the allowed apps list.
Expert Q&A & Troubleshooting Insights
Do my friends need to port forward to join my Minecraft server?
No. Only the host (the person running the server software on their computer) needs to configure port forwarding on their router. The connecting players only need your public IP address and the port number (e.g. 203.0.113.50:25565) to join from their client.
Why do my friends get a 'Connection Timed Out' error?
This is almost always caused by: 1) Your Windows Defender Firewall is blocking the Java connection on the host PC, 2) The router rule is directing traffic to the wrong local IP address, or 3) Your ISP has you behind a Carrier-Grade NAT (CGNAT).
What is my public IP address to give to my friends?
Your local IP (e.g., 192.168.1.x) is only visible inside your home. To allow friends to connect over the internet, search 'what is my IP' on RouterVia. Give them that public IP address, which they will paste into Minecraft's Multiplayer Server Address bar.