How to Play Minecraft Together: LAN, e4mc & Family Server
If you are in the same house on PC, use "Open to LAN" over home Wi-Fi (free, zero mods). To play with school friends over the internet without router port forwarding, install the lightweight open-source e4mc mod on the host PC. If playing across iPad, Switch, PlayStation, and PC, launch Bedrock Edition and connect via Xbox Live Friends.
1. Comparing 5 Safe Ways to Play Together
Setting up a private world to play Minecraft together on LAN or a family server should not require a monthly subscription or exposing your home router to the public internet. Many parents assume they either have to pay $7.99/month for Minecraft Realms or send their child onto crowded public servers filled with unmoderated chat. In reality, Minecraft 1.21+ offers four completely free, private ways to connect two or more devices—whether you are sitting on the same couch or connecting with school friends across town.
Before changing any settings, check which edition your family devices run (if you are unsure, read our Java vs Bedrock Edition comparison for parents). Two laptops running Java Edition cannot natively join an iPad running Bedrock Edition, so your connection method depends directly on your hardware mix.
| Connection Method | Edition | Where It Works | Cost | Setup Time & Trade-Off |
|---|---|---|---|---|
| Open to LAN (Built-in) | Java & Bedrock | Same home Wi-Fi / Ethernet | Free ($0) | 1 min. Host PC must stay logged into the world; often blocked by Windows Firewall on Public Wi-Fi profile. |
| e4mc Mod (Tunnel) | Java Edition | Anywhere via Internet | Free ($0) | 3 min. Requires Fabric/Forge on host PC only; guests join from 100% vanilla clients using a temporary link. |
| Essential Mod | Java Edition | Anywhere via Internet | Free ($0) | 5 min. 1-click friend invites, but requires all players to install the mod and includes an in-game cosmetic shop. |
| Xbox Friends Crossplay | Bedrock Edition | Home Wi-Fi & Internet | Free ($0)* | 3 min. Connects PC, iPad, Android, Switch, PlayStation & Xbox. (*Consoles require their standard online pass). |
| Dedicated 24/7 Server | Java or Bedrock | Always-on Internet | $0–$8/mo | 15 min. World stays online even when the host PC is turned off; supports strict /whitelist protection. |
2. Home Wi-Fi ("Open to LAN") & The Windows Firewall Fix
When a parent and child (or two siblings) play on computers connected to the same home router, Open to LAN is the fastest and safest multiplayer mode. Traffic never leaves your apartment or house, ping stays at an instant 1–3 ms, and strangers on the internet cannot see or scan your world.
Step-by-Step Local LAN Setup (Java Edition)
- Requirements: Each player must launch Minecraft with their own separate Microsoft account. Two computers logged into the exact same account cannot join the same LAN world simultaneously (the second player will trigger a
Failed to verify username / Duplicate loginerror). - On the Host PC (choose the faster computer, ideally tuned with our Sodium & Lithium FPS optimization guide), open your singleplayer world.
- Press
Escapeto open the pause menu and click Open to LAN. - Configure the session rules: set Game Mode: Survival (or Creative for building), toggle Allow Commands: ON (so you can rescue lost items if your child falls into lava), and leave the port field blank or set it to
25565. - Click Start LAN World. A green message will appear in chat: "Local game hosted on port XXXXX" (for example,
54812). - On the Second PC, click Multiplayer from the title screen and scroll to the very bottom. Your "LAN World" will appear automatically with a spinning radar icon.
Why "LAN World Not Showing Up" Happens (And the 60-Second Fix)
In roughly 70% of Windows 10 and Windows 11 households, the second computer never sees the LAN world in the server list, or fails with io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out. This happens because Windows classifies your home Wi-Fi as a "Public Network" and silently blocks the Java runtime (javaw.exe) from broadcasting UDP discovery packets on port 4445.
Instead of disabling your entire firewall (which is a security risk), use Direct Connection by combining the host computer's local IPv4 address with the LAN port printed in chat:
Direct Connect = [Host Local IPv4] : [Dynamic LAN Port] (Example: 192.168.1.42:54812)
- On the Host PC, press
Win + R, typecmd, and press Enter. - Run the command below and look for the line labeled IPv4 Address (it almost always starts with
192.168.x.xor10.0.x.x):
ipconfig
- On the Second PC, open Multiplayer ➔ Direct Connection and type the IPv4 address followed by a colon and the 5-digit port from chat—for example,
192.168.1.42:54812. - Permanent Fix: Open Windows Security ➔ Firewall & network protection ➔ Allow an app through firewall. Find every entry named Java(TM) Platform SE binary or OpenJDK Platform binary and check both the Private and Public boxes. Also switch your home Wi-Fi profile from "Public" to "Private" in Windows Wi-Fi Properties.
3. Internet Play Without Port Forwarding: e4mc vs Essential Mod
What if your child wants to invite a school classmate who lives in another house? Historically, parents had to log into their home router admin panel, expose TCP/UDP port 25565 (Port Forwarding), and share their home public IP address—which fails completely on modern ISPs that use CGNAT (Carrier-Grade NAT) and exposes your home IP to port scanners.
Today, two free mods solve this in 3 minutes by creating an encrypted outbound relay tunnel directly from the "Open to LAN" menu:
Option A: e4mc (Recommended for Parents — Lightweight & Ad-Free)
e4mc (Easy for Minecraft) is a tiny, open-source mod hosted on Modrinth and CurseForge. It adds zero extra menus, zero microtransactions, and zero social clutter.
- Preserved Benefit: Only the host computer needs to install Fabric + the
e4mcmod file. Invited friends do not need to install any mods at all—they can join from a standard vanilla Minecraft launcher! - Explicit Trade-Off: Every time you open the world to LAN,
e4mcgenerates a fresh temporary domain (such assweet-emerald-wolf.e4mc.link). You must copy and send this new link to your friend each session, and ping increases by15–35 mscompared to a direct connection because traffic routes through the closest regional Quiclime relay node.
How to use e4mc in 4 steps:
- Install the Fabric Loader (or use the official Modrinth App) for Minecraft 1.21+ and add the e4mc mod.
- Enter your singleplayer world, press
Escape ➔ Open to LAN ➔ Start LAN World. - Look at the game chat: right below the local port message, you will see: "Local game hosted on domain [xxxx.e4mc.link] (Click here to copy)".
- Send that
.e4mc.linkaddress to your child's friend. They simply paste it into Multiplayer ➔ Direct Connection and join immediately.
Option B: Essential Mod (Console-Style Friend Invites, With Caveats)
Essential Mod is very popular among kids because it adds an in-game Friends list, screenshot sharing, and a single Invite Friends button on the pause screen.
- Preserved Benefit: Once two kids add each other's Minecraft usernames in the Essential social tab, joining a world takes a single click without copying domains or IP addresses.
- Explicit Trade-Off (Parent Warning): Both the host and every guest must install Essential. Furthermore, Essential injects a prominent in-game "Wardrobe" cosmetic store selling paid emotes and outfits for real money ("Essential Coins"), and maintains an independent friend chat system outside Microsoft Family Safety. If you want a zero-monetization environment, stick with e4mc.
4. Crossplay: PC + iPad, Switch, Xbox & PlayStation (Bedrock)
If you sit at a Windows PC while your child plays on an iPad, Android tablet, Nintendo Switch, Xbox, or PlayStation, you must both launch Minecraft: Bedrock Edition. Remember: if you own Minecraft on a Windows PC, Bedrock Edition is already included free inside your official Minecraft Launcher alongside Java Edition.
- Sign in with Microsoft Accounts: On both devices, tap Sign In on the main menu and log into two separate Microsoft/Xbox accounts.
- Add Each Other as Xbox Friends: In the Minecraft menu, click Play ➔ Friends ➔ Add Friend and search for your child's Gamertag. Do the same from your child's device so the friendship is mutual.
- Check Family Privacy Settings: If your child sees "You cannot play online multiplayer because of how your Microsoft Account is set up", open our Microsoft Family Safety parental controls guide and set "You can join multiplayer games" to Allow at
account.xbox.com/settings. - Join the World: Load any singleplayer world on the faster device. Make sure Multiplayer Game is enabled in the world settings (restricted to Friends Only, not Friends of Friends). Within 5 seconds, the world will pop up under the Friends tab on the second device.
5. Stress-Free Family Server Gamerules & Whitelist
Playing survival together with younger kids (ages 6–11) often leads to tears when a Creeper blows up their house or they fall into lava with all their diamonds. If you turned on Allow Commands when opening your LAN world, paste these four official commands into the chat (press T) to make your family server frustration-free:
/gamerule keepInventory true
/gamerule mobGriefing false
/gamerule doFireTick false
/gamerule playersSleepingPercentage 50
/gamerule keepInventory true— Players keep all their armor, tools, and XP levels after dying instead of dropping their inventory on the ground (see what "drop" and "despawn" mean in our Parents Glossary)./gamerule mobGriefing false— Creepers still deal combat damage if they explode, but they never break a single block of your child's builds. Endermen also stop stealing blocks from walls. (Trade-off: Villagers cannot harvest wheat automatically while this rule is false)./gamerule doFireTick false— Prevents lightning strikes or accidental lava buckets from burning down a wooden treehouse./gamerule playersSleepingPercentage 50— In a 2-player world, only 1 person needs to click a bed to skip the scary night and clear rain.
Running a Dedicated 24/7 Family Server (RAM Calculation & Whitelist)
If your family builds large projects—like domes planned in our Voxel Circle & Sphere Generator or fast Nether Ice Highways linked with the Nether Portal 1:8 Calculator—and you want players to log in even when the parent's laptop is closed, you can run the official Mojang server.jar (or a lightweight Fabric/Paper server) on a spare desktop PC or a $4/month host.
Allocated RAM (GB) = 2.0 GB Base + (0.5 GB × Players) + (0.25 GB × Max(0, SimDistance - 8))
For a 4-player family server running at the standard 10-chunk simulation distance (learn how simulation chunks affect farms in our Simulation Distance & Mob Despawn Spheres guide), allocate exactly 4 GB to 5 GB of RAM (-Xms4G -Xmx4G). Most importantly, never leave an internet-facing server open to the public. Enable the built-in whitelist immediately so automated griefing bots (like Fifth Column scanners) are rejected at the login handshake:
/whitelist on
/whitelist add ParentUsername
/whitelist add ChildUsername
/whitelist reload
Key Takeaways
- Same House on PC = Open to LAN: Zero mods and zero cost. If the LAN world doesn't appear on the second computer, use Direct Connection with
Host_IPv4:Portand allowjavaw.exethrough Windows Firewall on Private networks. - Friends Over the Internet = e4mc: The open-source
e4mcmod creates an instant, temporary.e4mc.linkaddress directly from Open to LAN without router port forwarding, and guests can join from unmodified vanilla Minecraft. - Mixed Devices (PC + iPad/Switch/Console) = Bedrock Edition: Add each other via Xbox Live Gamertags and set world access to Friends Only.
- Protect Emotions & Builds: Enable
/gamerule keepInventory trueand/gamerule mobGriefing falseso accidental deaths and Creeper explosions never erase hours of family creativity.
Frequently Asked Questions (FAQ)
Can my child and I play together using one single Minecraft account?
Officially, every simultaneous player in a multiplayer or LAN world needs their own Microsoft account and Minecraft license. If two computers sign into the exact same account and try to join the same LAN world, the host will reject the second player with a duplicate login or invalid session error.
Why does Minecraft LAN say "Connection timed out: getsockopt" in 1.21?
The getsockopt error in Minecraft 1.21+ means Windows Defender Firewall on the host PC is blocking incoming TCP connections to the Java binary. Open Windows Firewall settings, locate OpenJDK Platform binary (there may be 2 or 3 entries), and check both the Private and Public network checkboxes.
Is e4mc or Essential Mod safer for kids?
For younger kids, e4mc is significantly cleaner and safer: it is open-source, has no in-game store, no social chat overlay, and its link expires the second you close the world. Essential Mod is safe from malware, but includes a paid cosmetic shop and a persistent social network overlay.
Can Java Edition and Bedrock Edition play together on the same LAN world?
Not natively. Java Edition and Bedrock Edition use completely different network protocols. If both players have PCs, both should launch the same edition. If one player is on an iPad, phone, or console, the PC player should switch to Minecraft for Windows (Bedrock) in the launcher—which is included for free with every PC license.
Are free server hosts like Aternos safe for a family world?
Yes, Aternos is legitimate and free, provided you immediately turn on the Whitelist in the Aternos server options and never install unofficial plugins. Its trade-off is a waiting queue during evening peak hours (3–10 minutes to boot) and automatic shutdown after 5 minutes of inactivity, plus limited view distance (around 7–9 chunks).
📚 More Family & Safety Guides
Minecraft for Learning: Redstone, Coding & STEM
A practical guide for parents on turning Minecraft into a STEM learning lab. How Redstone teaches binary logic, how 3D coordinates build math intuition, what Minecraft Education actually requires, and an age-by-age roadmap from Creative builds to MakeCode and Command Blocks.
Minecraft Parental Controls: How to Keep Kids Safe & Disable Purchases
Step-by-step setup guide for Microsoft Family Safety, chat restrictions, blocking unverified multiplayer servers, and preventing accidental Minecoin transactions.
Minecraft Java vs Bedrock: Which Edition Should You Buy for Your Child?
A plain-English comparison of Minecraft Java and Bedrock editions. Understand crossplay, mods, device compatibility, and subscription requirements.