Public IP vs Local IP for Minecraft Servers
Understand public IP vs local IP for Minecraft servers, what address players should use, how port forwarding works, and why 192.168 addresses fail externally.
Minecraft server connection problems often start with the wrong IP address. Your local IP and public IP are not interchangeable.
The Difference
| Address type | Example | Who can use it |
| --- | --- | --- |
| Local IP | 192.168.1.40 | Devices on the same LAN |
| Public IP | 203.0.113.10 | External players if firewall/NAT allows |
| Domain | play.example.com | Anyone if DNS points correctly |
If you send a 192.168.x.x address to a friend outside your house, it will not work.
How Port Forwarding Uses Both
Home hosting uses both addresses:
- Players connect to your public IP.
- Your router receives the traffic.
- Port forwarding sends the traffic to your server's local IP.
- The Minecraft server answers from the configured port.
That is why the router forward uses the local IP, while players use the public IP or domain.
Keep the Local IP Stable
If the server machine's local IP changes, the port forward breaks. Use a DHCP reservation in your router so the server keeps the same LAN address.
Most self-hosted Java servers should leave `server-ip` blank. Putting your public IP there can prevent the server from binding correctly.
Public IP Changes
Many residential ISPs change public IPs. If your server worked yesterday and the domain or saved IP fails today, check whether the public IP changed.
Options:
- Update DNS manually.
- Use dynamic DNS.
- Ask the ISP for a static IP.
- Move to hosting or a VPS.
If your router WAN IP does not match your public IP, you may be behind CGNAT. See Minecraft server behind CGNAT.
Domains Point to Public Endpoints
A domain should point to the public endpoint players need to reach. Continue with how to use a domain for your Minecraft server when the raw public endpoint works.
FAQ
Can friends join using my local IP?
Only if they are on the same private network. External players need your public endpoint or a domain pointing to it.
What does 192.168 mean?
192.168.x.x is a private LAN address. It is not directly reachable from the internet.
Can my public IP change?
Yes. Many home connections use dynamic public IPs. A domain or dynamic DNS can reduce address-sharing problems.
Related Tools
server.properties Generator
Generate a clean Minecraft server.properties baseline for online mode, max players, difficulty, view distance, simulation distance, and command blocks.
Minecraft Port Checker / Troubleshooting Wizard
Build a Minecraft port troubleshooting plan for port 25565, home hosting, VPS firewalls, panel allocations, proxy networks, DNS, and CGNAT.
Backup Schedule Generator
Generate a Minecraft server backup schedule with interval, retention, storage estimate, off-node backup reminder, and cron-style examples.
Related Articles
Port Forwarding Not Working for Minecraft Server
Fix Minecraft port forwarding not working by checking server-port, local IP, router NAT, Windows Firewall, UFW, provider firewalls, and CGNAT.
Minecraft Server Behind CGNAT: What to Do
Learn what to do when a Minecraft server is behind CGNAT, why port forwarding fails, and options such as public IPv4, IPv6, tunnels, VPS, or hosting.
How to Use a Domain for Your Minecraft Server
Set up a domain for your Minecraft server with A records, subdomains, SRV records, DNS-only Cloudflare settings, and correct public IP targeting.