Where to find your server address depends on how you're playing

The server address is the text string that tells your game where to connect — it's either an IP address (numbers separated by dots, like 192.168.1.1) or a domain name (like play.example.com). Where you find it depends on whether you're joining a friend's world, a public server, or running your own.

If someone invited you to play, they should have sent you the address directly. If you're looking for a new server to join, you'll find addresses on server listing websites. If you're hosting your own server, the address is generated when you start it up. The steps below cover each situation.

Key Takeaways

  • Server addresses appear in the invite message from friends, or on server listing sites like Planet Minecraft and Minecrafted.
  • On Windows and Mac, you paste the address into the "Server Address" field in the Multiplayer menu, not into chat.
  • If you're hosting a server on your own computer, the address is usually localhost or 127.0.0.1, and other players need your public IP address to join from outside your home network.
  • Console versions of Minecraft (PlayStation, Xbox, Nintendo Switch) use Realms or Clubs instead of traditional server addresses.
  • A server address that won't connect usually means the server is offline, the address was typed wrong, or your firewall is blocking the connection.

Getting a server address from a friend's invitation

When a friend invites you to their server, they should send you the address through Discord, text, email, or whatever chat app you use. Copy the exact text they send — capitalization and spacing don't matter, but typos do. If they send something like "mc.example.com:25565", the colon and number at the end is the port, and you include all of it.

If your friend is hosting on their home computer and you're joining from outside their house, they need to give you their public IP address, not their local one. They can find their public IP by going to a site like whatismyipaddress.com. Their local network address (usually starting with 192.168 or 10.0) won't work from outside their home.

Once you have the address, open Minecraft, click Multiplayer, then Add Server. Paste the address into the "Server Address" field and give it a name so you can find it again. Click Done, and the server will appear in your list.

Finding public servers through listing websites

Websites like Planet Minecraft, Minecrafted, and Minecraft Server List host thousands of public servers. Each listing shows the server address, the number of players online, and what game mode it runs (Survival, Creative, PvP, etc.). Search by game type or sort by player count to find one that matches what you want to play.

Copy the server address from the listing page. Some sites show it as a clickable button that copies to your clipboard; others show it as plain text you have to select and copy yourself. Paste it into Minecraft's Add Server field the same way you would with a friend's address.

Public servers can go offline without warning, and some addresses change when the owner switches hosting providers. If a server you bookmarked stops working, check the listing site to see if it's been updated or removed.

Finding the address if you're hosting your own server

If you're running a server on your own computer using Minecraft Server software, the address for players on your home network is localhost or 127.0.0.1. Other people in your house can connect using either of these in the Server Address field.

For players outside your home network, you need your public IP address. Find it by visiting whatismyipaddress.com from any browser. Give this address to friends who want to join. If your internet provider assigns you a new IP address periodically (which most do), the address may change and you'll need to send them the new one.

You also need to port forward on your router so that incoming connections reach your computer. This process varies by router model, but the general steps are: log into your router's settings (usually 192.168.1.1 in a browser), find the Port Forwarding section, and forward port 25565 (Minecraft's default) to your computer's local IP address. If you're not comfortable doing this, consider using a hosting service instead.

Checking if a server address is correct before connecting

Before you add a server to your list, make sure you've copied the address exactly as shown. Check for extra spaces at the beginning or end, which are easy to miss. If the address includes a port number (the colon and numbers at the end), include that too — leaving it off is a common reason connections fail.

If you're typing the address by hand instead of copying it, type it slowly and double-check each character. Numbers like 1 and lowercase L look similar, and dots can be easy to miss. If the address is long, copy and paste instead of typing.

Some servers require you to whitelist your username before you can join. If you get a "You are not whitelisted on this server" message, contact the server owner and ask them to add you.

What to do when a server address won't connect

The most common reason a connection fails is that the server is offline. Check the server listing site or ask the owner whether the server is running. If it's a public server, try again in a few minutes — servers restart regularly and may be down temporarily.

If the address is correct and the server is online, your firewall or router may be blocking the connection. Windows Firewall and Mac's built-in firewall sometimes block Minecraft without asking. Try temporarily disabling your firewall to test, then add Minecraft to the exceptions list if that fixes it. If you're on a school or work network, the network administrator may have blocked game servers entirely.

If you're trying to connect to a server on your home network and it's not working, make sure both computers are on the same WiFi network. If one is on WiFi and one is plugged into ethernet, they may not be able to see each other depending on your router settings.

Server addresses on console versions of Minecraft

PlayStation, Xbox, and Nintendo Switch versions of Minecraft don't use traditional server addresses. Instead, you join through Realms (a subscription service run by Microsoft) or through Clubs (Xbox's social feature). You won't see or type a server address — you just select a Realm or Club from a menu and join.

If you want to play on a custom server with these consoles, you need to use Realms, which costs a monthly fee. The free multiplayer options are limited to Clubs on Xbox and local split-screen play on all consoles.

Frequently Asked Questions

What's the difference between a server address and a port number?

The server address is where the server is located (like play.example.com). The port number is which "door" on that computer to use (usually 25565). If you see an address with a colon and numbers at the end, like play.example.com:25565, the part after the colon is the port. Include both when you connect.

Can I find out what server someone else is playing on?

If they're in your friends list and playing on a server, Minecraft shows the server name in their profile. If you click on their name, you may see an option to join their server. This only works if the server allows friends to join without being whitelisted.

Why does my server address keep changing?

If you're using your home internet's public IP address, your internet provider may assign you a new one every time your modem restarts. You can ask your provider for a static IP (which costs extra), use a dynamic DNS service that updates automatically, or switch to a paid hosting provider with a permanent address.

Do I need to include the port number when I add a server?

Only if it's different from the default 25565. If the address you were given includes a port number (like address.com:12345), paste the whole thing including the colon and number. If there's no port number listed, you don't need to add one.

What if the server address has a hyphen or underscore in it?

Type or paste it exactly as shown. Hyphens and underscores are valid characters in domain names and won't cause problems. Just make sure you use the right character — a hyphen (-) is different from an underscore (_).