---
title: "Play Minecraft with friends: every way to connect · CloudSat"
description: "How to play Minecraft with friends on Java and Bedrock: LAN worlds, friend invites, Realms and servers, plus how to find, share and name your server address."
url: https://cloudsat.io/learn/play-minecraft-with-friends-every-way-to-connect
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Gaming](https://cloudsat.io/learn/topic/gaming)

# Play Minecraft with friends: every way to connect

How to play Minecraft with friends on Java and Bedrock: LAN worlds, friend invites, Realms and servers, plus how to find, share and name your server address.

CloudSat team November 18, 2026 7 min read

Minecraft gives you several ways to put friends in the same world, and they are not interchangeable. Some only work on one network, some stop the moment the host logs off, and some never reach console players at all. The right choice comes down to three questions: which edition everyone plays, which devices they play on, and whether the world has to stay online when you are not. This guide answers those first, then covers the part that causes most of the trouble: finding the right address, sharing it and fixing the errors friends report.

## Pick a route first

| Route | Editions | Who can join | Online when the host is away? |
| --- | --- | --- | --- |
| Open to LAN | Java and Bedrock | People on the same network | No |
| Friend invites | Bedrock | Friends on any Bedrock device | No |
| Realms | Java and Bedrock, separately | Invited players, consoles included on Bedrock | Yes |
| Your own server | Java and Bedrock | Anyone you allow | Yes |

Java and Bedrock players cannot share a LAN world, a friend invite or a Realm. The only way to mix them is a Java server running the Geyser bridge, which our [Java or Bedrock guide](https://cloudsat.io/learn/minecraft-java-or-bedrock-which-edition) explains. Every player also needs their own copy of the game and their own account; shared or "cracked" logins are not a way around that.

## Java Edition

### Open to LAN

Load a singleplayer world, press Escape and choose **Open to LAN**. Pick the game mode, whether cheats are allowed, and optionally a port number, then confirm. The chat shows the port the world is using. Anyone on the same home network sees the world appear at the top of their **Multiplayer** list. If it does not show up, they can use **Direct Connection** with your local address and that port, such as `192.168.1.20:51234`.

The same thing works as a command, which is handy for picking a fixed port:

```text
/publish true survival 25565
```

The arguments are cheats on or off, the default game mode, and the port. A LAN world closes when you quit, and it lives on your PC, so nobody else can play in it without you.

### Joining a server

On a server, players open **Multiplayer**, click **Add Server** and type the address. If the server does not use the default port 25565, they add it after a colon: `203.0.113.10:25566`. A domain name with an SRV record, covered below, hides the port entirely.

## Bedrock Edition

### Worlds and friend invites

Bedrock worlds are multiplayer by default. In the world's **Multiplayer** settings, choose whether only invited players, your friends, or friends of friends can join, and whether the world is visible on the local network. Friends signed in with their Microsoft accounts then see it under **Friends** as a joinable game, or you can send an invite from the pause menu. This works across phones, tablets, Windows and consoles, which is the main strength of Bedrock. As with LAN, the world exists only while the host is playing.

### Servers on Bedrock

On Windows, Android and iOS, the **Servers** tab has an **Add Server** button with fields for a name, an address and a port. The default Bedrock port is 19132 over UDP.

Consoles are different. Xbox, PlayStation and Switch players can only open the featured servers listed in the game, with no field to type an address. Community workarounds that redirect the console's DNS exist, but they depend on third-party services and tend to break with updates. If console players are part of your group, a Bedrock Realm is the official way to give them a world that stays online; our comparison of [Realms and your own server](https://cloudsat.io/learn/minecraft-realms-or-your-own-server) covers the limits.

## Find the address to share

There are three different addresses, and mixing them up causes most failed connections.

- **Your local address** works only inside your home network. Find it with `ipconfig` on Windows (the IPv4 Address line), `ipconfig getifaddr en0` on macOS, or `hostname -I` on Linux.
- **Your public address** is what the internet sees for your whole home connection. Your router's status page shows it as the WAN or internet address.
- **A rented server's address** appears in the hosting provider's control panel, and of the three it alone is identical for every player, wherever they connect from.

### Hosting from home

To let friends outside your network reach a server on your PC, forward the game port on your router to that PC: TCP 25565 for Java, UDP 19132 for Bedrock. Reserve the PC's local address in the router's DHCP settings, or the forward breaks the next time the address changes. Allow Java through the Windows firewall when it asks on the first start.

Check the WAN address on the router before you spend an evening on port forwarding. If it falls between `100.64` and `100.127`, your provider puts you behind carrier-grade NAT, and forwarded ports will never be reachable from outside. A private address such as `10.x`, `172.16` to `172.31` or `192.168.x` means another router sits in front of yours: forward the port on that one too, or put it in bridge mode. Behind carrier-grade NAT, your options are a VPN overlay that puts your friends on a shared private network, a Realm, or a rented server.

Remember that everyone who joins a home-hosted server can see your home IP address. A grudge can turn into a flood aimed at your home connection, which our guide to [DDoS protection for game servers](https://cloudsat.io/learn/ddos-protection-for-minecraft-and-fivem-servers) explains.

### Hosting on a rented server

On a VPS, confirm the server is actually listening before blaming anything else:

```bash
ss -tlnp | grep 25565   # Java, TCP
ss -ulnp | grep 19132   # Bedrock, UDP
```

If the line appears, the remaining suspects are the firewall and the address you shared. A CloudSat [Minecraft server](https://cloudsat.io/solutions/minecraft-server) comes with a dedicated public IPv4 address and DDoS filtering, and a 4 GB High Frequency plan costs $11.58/mo.

## Give the server a name

An address like `203.0.113.10:25566` is easy to mistype and changes if you move hosts. A domain name fixes both. Create an A record pointing a name at the server, and, if Java runs on a port other than 25565, an SRV record telling the game which port to use:

```text
mc.example.com.                  3600 IN A   203.0.113.10
_minecraft._tcp.mc.example.com.  3600 IN SRV 0 5 25566 mc.example.com.
```

Java players then type `mc.example.com` and nothing else. Bedrock ignores SRV records, so Bedrock players enter `mc.example.com` in the address field and the port separately. On a home connection whose public address changes, a dynamic DNS service keeps the A record current.

## When friends cannot connect

| What they see | Usual cause | What to check |
| --- | --- | --- |
| Connection timed out | Traffic never arrives | Firewall rules, port forwarding, the address you gave out |
| Connection refused | Nothing listens on that port | Is the server running, and on which port? |
| Outdated client or Outdated server | Version mismatch | Everyone on the same version as the server |
| You are not white-listed on this server | The whitelist is on | `whitelist add <name>`; new 26.3 servers enable it by default |
| Failed to verify username | Account sign-in problem | Restart the launcher and sign in again |
| Unable to connect to world (Bedrock) | Multiplayer settings or UDP blocked | World multiplayer options, UDP 19132 |

From a Windows PC outside the network, `Test-NetConnection 203.0.113.10 -Port 25565` tells you whether a Java server's TCP port answers at all. Bedrock uses UDP, which that test cannot check, so ask a friend to add the server and watch for the ping in their server list instead.

## FAQ

### Do my friends need their own copy of Minecraft?

Yes. Each player needs a purchased copy and their own account. Realm members do not pay for the Realm itself, but they still need the game. Servers that let unpaid copies in break Mojang's rules for servers.

### Can Java and Bedrock players join the same world?

Not on LAN, invites or Realms. A Java server with the Geyser plugin accepts Bedrock players as well, and Floodgate lets them join without a separate Java account.

### How do I play with friends on PlayStation or Switch?

Use Bedrock friend invites while you are both online, or a Bedrock Realm for a world that stays up. Consoles cannot add a custom server address, so a self-hosted Bedrock server does not reach them without unofficial workarounds.

### Is it safe to give my home IP address to friends?

To a few people you trust, usually. On a public server, everyone who joins can find it, and floods aimed at it take your whole household offline. Move public servers to a rented machine.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Gaming](https://cloudsat.io/learn/topic/gaming)

- [Minecraft Realms or your own server: how to choose](https://cloudsat.io/learn/minecraft-realms-or-your-own-server): Gaming Minecraft Realms or your own server: how to choose 6 min read
- [How to make a Minecraft Java server, step by step](https://cloudsat.io/learn/make-a-minecraft-java-server-step-by-step): Gaming How to make a Minecraft Java server, step by step 7 min read
- [Minecraft Java or Bedrock: which edition should you play?](https://cloudsat.io/learn/minecraft-java-or-bedrock-which-edition): Gaming Minecraft Java or Bedrock: which edition should you play? 6 min read
- [Paper plugins for a new Minecraft server, sorted by job](https://cloudsat.io/learn/essential-paper-plugins-for-a-new-server): Gaming Paper plugins for a new Minecraft server, sorted by job 7 min read
