The fastest way to invite a friend depends on which version you own

Minecraft has three separate versions — Java Edition, Bedrock Edition, and Realms — and the method to invite a friend changes depending on which one you play. Java Edition uses a server code you share directly. Bedrock Edition uses the Xbox Live friends system. Realms is a subscription service that handles invitations for you. If you are not sure which version you own, check your launcher: Java Edition shows a dirt block icon, Bedrock shows a Minecraft logo.

The simplest path for most players is Bedrock Edition, where you add your friend through Xbox Live and they automatically see your world. Java Edition requires more steps but costs nothing. Realms is the most hands-off option but requires a monthly subscription.

Key Takeaways

  • Java Edition players share a server code with their friend, who enters it in the Multiplayer menu to join.
  • Bedrock Edition uses Xbox Live friends, so you add your friend first, then invite them to your world from the pause menu.
  • Realms is a subscription service that lets you invite friends without managing a server yourself.
  • The friend must own a copy of Minecraft on the same platform (Java, Bedrock, or console) to join your world.

Inviting someone in Java Edition

Open your world and press Escape to pause. Click "Open to LAN" and set a port number (the default is usually fine). A green message will appear with a server code — copy this code and send it to your friend through Discord, text, or any other chat app.

Your friend opens their Minecraft launcher, clicks Multiplayer, then Add Server. They paste the code into the Server Address field, give it a name, and click Done. Your world now appears in their server list. They click it and join. You must keep your game running for them to stay connected — if you close Minecraft, they are kicked out.

This method works only if you and your friend are on the same internet network (the same WiFi or wired connection). If your friend is outside your home network, you will need to use a third-party tool like Hamachi or a server hosting service, which are beyond the scope of a basic invitation.

Inviting someone in Bedrock Edition

First, add your friend to your Xbox Live friends list. On Windows 10 or 11, open the Xbox app, search for their username, and send a friend request. On Nintendo Switch, PlayStation, or Xbox, use that console's built-in friends menu. Your friend must accept the request before you can invite them.

Once they are your friend, start or load your world. Press Escape and click "Invite to Game." A list of your Xbox Live friends appears. Click the friend you want to invite. They receive a notification on their device and can join your world directly. Unlike Java Edition, you do not need to share a code or stay on the same network.

Bedrock worlds stay open as long as you are playing, and your friend can join and leave without kicking everyone else out. If you close the game, the world closes and your friend is disconnected.

Using Minecraft Realms to invite friends

Realms is a paid subscription (around $8 per month) that runs your world on Microsoft's servers instead of your own computer. You do not have to stay online for friends to play, and you can invite up to two friends on the free tier or more on higher tiers.

To set up Realms, open Minecraft Bedrock Edition, click Create New, then select Realms. Follow the prompts to start a subscription. Once your Realm is running, click the pencil icon next to it, then Members, then Invite Player. Enter your friend's Xbox Live username and send the invite. They receive a notification and can join whenever they want, even if you are offline.

Realms is the most reliable option if you want a world that stays online all the time and does not depend on your computer being powered on. It also handles backups automatically, so you do not lose progress if something goes wrong.

What to do if the invitation does not work

The most common reason an invitation fails is that your friend is not on the same platform. Java Edition players cannot join Bedrock worlds, and console players cannot join Java worlds. Check that you both own the same version.

In Java Edition, make sure "Open to LAN" is actually enabled — the button should be green. If your friend cannot see the server code, try opening to LAN again and copying the code a second time. If they are outside your home network, Java's LAN feature will not work at all, and you will need Realms or a third-party server tool instead.

In Bedrock Edition, confirm that your friend has accepted your Xbox Live friend request. If they have, restart both games and try inviting again. If the invite still does not go through, check that both of you have internet access and that neither account has parental controls blocking multiplayer.

Playing across different platforms in Bedrock

One advantage of Bedrock Edition is cross-platform play. A friend on Nintendo Switch can join a world hosted by someone on Windows, PlayStation, or Xbox. Java Edition does not support cross-platform play — all players must be on PC.

Cross-platform invitations work the same way: add them as an Xbox Live friend, then invite them from the pause menu. The only limitation is that some features (like certain skins or marketplace items) may not display the same way across all platforms, but the world itself plays identically.

Frequently Asked Questions

Can I invite someone who does not have Minecraft yet?

No. Your friend must own a copy of Minecraft on the same platform as you. If they do not own it, they can purchase it from the Microsoft Store (Bedrock), the Java website (Java Edition), or their console's store (PlayStation, Xbox, Switch).

What happens if my friend joins while I am playing?

In Java Edition, they appear in your world immediately and can see everything you have built. In Bedrock and Realms, the same applies — they join your current world and can interact with it right away. You do not have to restart or load a new save.

Can I invite more than one friend at a time?

In Java Edition, you can invite multiple friends using the same server code — they all join the same world. In Bedrock, you invite one friend at a time from the Members menu, but multiple friends can be in the world simultaneously. Realms supports up to two friends on the basic tier.

Do I need Xbox Live Gold or PlayStation Plus to play with friends?

On console, you do not need a paid subscription to play Minecraft multiplayer. On PC, you do not need Xbox Game Pass, though it is available as an option. The only paid requirement is Realms if you choose to use it.

What if my friend lives far away?

Java Edition's LAN feature only works on the same network, so distance does not matter as long as you are both on the internet. Bedrock and Realms work over the internet regardless of distance. If you want to use Java Edition with a distant friend, you will need a third-party server tool or service.