How to play Minecraft Java with friends (2026)

Updated 28 Sep 2026 · 5 min read

The short answer

Pick one way to share a world: Open to LAN on the same Wi-Fi, a tunnel mod like e4mc for friends elsewhere, Realms for $7.99 a month, a free host with a queue, or your own server that's always on. Everyone needs the same Minecraft version. The friends list shows who's online, but can't join worlds yet.

1Every way, compared

Java has five ways to play together. They differ in what they cost, whether friends can be somewhere else, and whether the world stays up when the host logs off.

Realms from minecraft.net and VPS plans from their providers, checked 28 Sep 2026.
CostsFriends elsewhereUp without the hostMods and plugins
Open to LANFreeNoNoMods, if all have them
LAN and a tunnelFreeYesNoMods, if all have them
Realms$7.99 a monthYes, 10 at onceYesNo
A free hostFreeYesUntil it's emptyDepends on the host
Your own serverFrom $8.99 a month on a VPSYesYesBoth

2Add friends on Java: the friends list

Since Minecraft 26.2, Java Edition has a friends list. It shows who's online and where they play.

  1. Open the friends list

    Friends, on the title screen or the pause menu, or press O.

  2. Send a request

    Type their profile name, the name they play under. Xbox friends who own Java show up by themselves.

  3. Accept theirs

    Requests wait under Pending until you accept or decline them.

Each friend shows as Online, Online (LAN), Online (World), Online (Realm) or Online (Server). It can't take you into a friend's world yet: Mojang tested invites to singleplayer worlds in a 26.2 snapshot and took them out before release, and 26.3 doesn't have them either. To play together, pick one of the ways below.

3Open to LAN, on the same Wi-Fi

Free and quick when everyone is in the same house. The world is open only while the host plays.

  1. Open your world

    The host starts a singleplayer world.

  2. Open it to LAN

    Pause › World Options, then turn on LAN under Multiplayer. Before 26.3: Pause › Open to LAN › Start LAN World.

  3. Friends join

    Their Multiplayer list shows the world under LAN. If it doesn't, use Direct Connection with the host's local IP and the port the game puts in chat.

4Friends somewhere else: a tunnel

A tunnel gives the host's world an address friends can reach from home, with no router settings. It's free; the world runs on the host's PC and connection, and stops when they do.

TunnelHow it worksFriends need
e4mcA mod for Fabric, Quilt, NeoForge and Forge. Open to LAN, and it shows a public address.Nothing extra
EssentialA mod with its own friends list. Friends join your world from it.Essential too
playit.ggA program that gives a server on your PC a public address. Free for Minecraft Java.Nothing extra

5Realms, run by Mojang

Realms for Java costs $7.99 a month: you and 10 friends at once, always online, with backups. Friends play free.

  1. Start a Realm

    Minecraft Realms, on the title screen. New subscribers get 30 days free.

  2. Invite friends

    By name, or with an invite code, new in 26.3.

  3. Friends join

    From their Realms list, or Join Realm with the code.

Java Realms run no mods or plugins, only Java players can join, and it's 10 friends at a time.

6A free host

Aternos and Minehut run a server for you, free. Aternos has a queue at busy times and stops the server when everyone leaves. Minehut's free plan has 1 GB of memory and 10 slots, and sleeps when empty. Fine for trying it out; outgrowing one is common, and moving an Aternos world takes minutes.

7Your own server, always on

Your own server keeps the world up when you log off, runs mods or plugins, and fits as many friends as it has memory for. On your PC it's free, but the PC stays on and you open port 25565 on your router. On a VPS it's always on, from $8.99 a month: see what a Minecraft server costs.

Playkeeper sets the server up on a VPS you rent, with one command:

curl -fsSL https://playkeeper.io/install | sudo sh
  1. Create a server

    Vanilla, Paper or a modpack. Playkeeper suggests the memory.

  2. Send friends its address

    A free name like survival.alex.playkeeper.me, without a port from three days after you claim it. Friends add it under Multiplayer › Add Server.

A server's Overview: its join address survival.alex.playkeeper.me with Copy, and the three friends playing now.
  1. Or send an invite link

    Friends open it and type their Minecraft name, and they're on the allowlist. Each link runs out when you choose.

The Players tab: invite links, each with who joined with it and when it runs out, and New invite link.

Not sure how big a VPS? The sizing guide works it out from how many friends play at once.

8Playing modded? Everyone needs the same mods

The host and every friend need the same loader, Minecraft version and mods. The easy way is a modpack everyone installs in the same launcher.

On your own server, Playkeeper makes one link: friends download a file for the Modrinth App or Prism Launcher, import it, and join. The modded server guide goes step by step.

Send friends what they need: the link to share, and what friends do with it.

9When friends can't join

The message on their screen says what's wrong.

Different versions

Incompatible client! Please use 26.3

Play the version it names: the Minecraft Launcher's Installations tab adds any. On your own server, ViaVersion lets newer versions join.

Multiplayer is off for the account

Multiplayer is disabled. Please check your Microsoft account settings.

It's usually a child account: a parent allows multiplayer in the account's Xbox privacy settings.

Not on the allowlist

You are not white-listed on this server!

Add them with /whitelist add and their name, or send them an invite link.

The server can't be reached

Failed to connect to the server

Check the address, that the server runs, and that TCP 25565 is open in your router or your VPS provider's firewall.

Questions

How do I join a friend's world on Java?

On the same Wi-Fi, it shows under LAN in your Multiplayer list once they open it to LAN. From anywhere else, they need a tunnel, a Realm or a server, and send you its address.

Can I invite friends to my world on Java?

Not from the friends list yet: Mojang took invites out before 26.2 shipped. Share the world with LAN, a tunnel, a Realm or your own server.

Can I play Minecraft Java with friends for free?

Yes: Open to LAN, a tunnel like e4mc, or a free host. Realms and a VPS cost money, and stay up without you.

Can Java and Bedrock players play together?

Not by default. They're separate editions, and this guide, like Playkeeper, is about Java.

Does everyone need to own Minecraft?

Yes, each player needs Minecraft: Java Edition. On a Realm, friends don't pay for the Realm, but still need the game.

How many friends can play at once?

Realms takes 10 besides you. A server of your own takes as many as its memory fits: the sizing guide works out the size.

Or start from a template

An always-on server for your friends, one command away.

Free and open source. Friends join at a free name, with an invite link.

curl -fsSL https://playkeeper.io/install | sudo sh
Try the live demo