Discover your SEO issues

Please enter a valid domain name e.g. example.com

How to Find the IP Address of a Minecraft Server: Server Properties, Command-Line Tools, and Router Settings

26

Start by checking the server machine first: open server.properties, confirm the port, then find the machine’s local IP with a command-line tool or your router’s device list. Most Java servers use port 25565 by default, which is listed in the server settings reference [source: Minecraft Wiki].

TLDR: If you own the Minecraft server, check server.properties for the port, then run ipconfig on Windows or ifconfig/ip addr on Linux or macOS to find the local IP. For example, if your PC shows 192.168.1.42 and the server port is 25565, players on your home Wi-Fi can try 192.168.1.42:25565. For friends outside your house, use your router’s WAN address and port forwarding. In many home setups, this takes under 10 minutes, unless your ISP uses CGNAT, which can block hosting from home.

Know which IP address you actually need

Minecraft server IPs can be confusing because there are usually two addresses involved. One works inside your home network. The other works from the internet.

  • Local IP: Used by people on the same Wi-Fi or LAN. It often looks like 192.168.1.42 or 10.0.0.23.
  • Public IP: Used by friends outside your home. This is assigned by your internet provider.
  • Domain name: Some servers use a name like play.example.com instead of showing the raw IP.
  • Port: Java servers commonly use 25565. Bedrock servers commonly use 19132.

The annoying part is that Minecraft may not tell you which one is wrong. It just fails to connect. Honestly, it feels like the game could spare everyone a few minutes with a clearer error message.

Method 1: Check the server.properties file

If you run the server, open the folder that contains the Minecraft server files. Look for a file named server.properties. Open it with Notepad, TextEdit, VS Code, or any plain text editor.

Look for these lines:

  • server-port=25565
  • server-ip=

Here is the part that trips people up: server-ip is often blank, and that is normal. In most home setups, you should leave it blank. It does not show your server’s IP. It only tells the server which network interface to bind to, which most players do not need to change.

The useful value is usually server-port. If it says 25565, your Java server address may look like this:

  • 192.168.1.42:25565 for local players
  • 203.0.113.25:25565 for outside players
  • play.example.com:25565 if using a domain

If the port is the default Java port, many players can enter only the IP or domain. Still, adding the port helps when testing.

Method 2: Use command-line tools

Command-line tools are the fastest way to find the local IP of the computer running the server.

Windows

On the server PC, press Windows + R, type cmd, and press Enter. Then run:

ipconfig

Find the active adapter, usually called Wi-Fi or Ethernet. Look for IPv4 Address. It may look like:

IPv4 Address . . . . . . . . . . . : 192.168.1.42

That is the local IP your household can use.

macOS and Linux

Open Terminal and run one of these:

ip addr

or:

ifconfig

Look for an address starting with 192.168, 10., or 172.16 through 172.31. That is usually the local IP.

Finding the IP behind a server domain

If the server uses a domain, try:

nslookup play.example.com

or:

ping play.example.com

This may show an IP address. But do not expect it to work every time. Some servers use proxies, DDoS protection, or special DNS records. For Minecraft Java, domains can also use an SRV record, which points players to the right host and port without showing it in the address box.

Method 3: Check your router settings

Your router can show every device connected to your network. This is useful if the server runs on a spare PC, a mini PC, or a NAS box and you forgot its address.

Open your router admin page. Common addresses include:

  • 192.168.1.1
  • 192.168.0.1
  • 10.0.0.1

Sign in and look for sections named Connected Devices, DHCP Clients, LAN Devices, or Device List. Find the server’s computer name, then copy its local IP.

This is also where you set up port forwarding. Forward the Minecraft port to the local IP of the server machine. For a Java server, that often means forwarding 25565 TCP to something like 192.168.1.42.

Expect to waste time here if your router app hides “advanced” settings behind three menus. Some routers make this take 30 seconds. Others make it feel like you are solving a puzzle with missing pieces.

Local IP vs public IP

Address type Who uses it? Example
Local IP Players on your home network 192.168.1.42:25565
Public IP Friends over the internet 203.0.113.25:25565
Domain Anyone, if DNS is set up play.example.com

Common problems

  • The server works locally but not online: Port forwarding is missing or wrong.
  • The IP keeps changing: Set a DHCP reservation in your router for the server device.
  • Friends still cannot join: Your firewall may be blocking Java or the Minecraft server file.
  • Your public IP does not match the router WAN IP: Your ISP may use CGNAT. Ask for a public IP or use a hosted server.
  • You are using Bedrock: Check UDP settings and the correct Bedrock port, often 19132.

One final safety tip: only search for or expose IP details for servers you own or manage. If you just want to join a public server, use the address the owner provides. If you host one, keep backups, use a whitelist, and double-check your ports before inviting the whole group.

Comments are closed.