Want to host your own Minecraft server and let friends join your world? Follow our definitive guide to open port 25565 and build a lag-free gaming session.
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
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).
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.
Navigate to the Port Forwarding, Virtual Server, or Advanced NAT rules section within your router's configuration system.
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.
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'.
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.
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).
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.