MineFixTools server utility lab
Hosting 2 min read Updated

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:

  1. Players connect to your public IP.
  2. Your router receives the traffic.
  3. Port forwarding sends the traffic to your server's local IP.
  4. 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.

Do not put the public IP in server-ip

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:

  1. Update DNS manually.
  2. Use dynamic DNS.
  3. Ask the ISP for a static IP.
  4. 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

Related Articles