e4mc is a free, open-source mod that takes the world you already play in and gives it a public address while your game is open. Only you install it. Your friends paste the address into the normal multiplayer screen, on a completely vanilla copy of Minecraft, and they are in.
What is e4mc?
e4mc is a client-side Minecraft mod by vgskye. It hooks into Open to LAN — the feature that normally only shares your world with people on the same Wi-Fi — and gives that world a public address instead, something like abcdef.e4mc.link.
It is free, open source, and needs no account, no subscription and no router settings. What it is not is a hosting service: your world runs on your computer and is reachable only while your game is open.
How does e4mc work?
When you open your world to LAN, the mod connects out to one of e4mc's relay servers over QUIC, a modern transport protocol that rides on UDP. Your router already allows outbound connections, so nothing has to be opened or forwarded. The relay is handed a public hostname, and traffic from your friends is passed back down that same connection to your game.
Since version 6.0.0 the mod also includes Dialtone, a peer-to-peer layer. When the person joining also happens to have e4mc installed, the two computers can connect directly instead of going through the relay, which cuts out a hop. Friends without the mod simply use the relay, which is the normal case.
Two consequences are worth understanding before you rely on it. Because the connection is outbound, e4mc works behind CGNAT, where port forwarding cannot work at all. And because the traffic is QUIC over UDP, a network that blocks UDP or QUIC — some school, campus and workplace networks do — can stop it from connecting.
How to use e4mc
e4mc is Java Edition only, and runs on Fabric, Quilt, Forge and NeoForge. Pick whichever loader you already use.
Install a mod loader
Install Fabric or NeoForge for your Minecraft version, then create a launcher profile that uses it. If you already play modded, you have this.
Download e4mc
Get the build that matches both your loader and your Minecraft version from Modrinth or CurseForge. On Fabric you will also need Fabric API.
Drop it in the mods folder
Put the
.jarinto.minecraft/mods. On Windows, paste%appdata%\.minecraft\modsinto the address bar of File Explorer to get there.Load your world
Start the game on that profile and open the single-player world you want to share.
Open to LAN
Press Esc, choose Open to LAN, set the game mode and whether cheats are allowed, then choose Start LAN World.
Copy the address
Chat prints a public address ending in
e4mc.linkalongside the usual LAN port, and copies it to your clipboard. Send that to your friends.
How your friends join
Nothing is installed on their side. They need the same Minecraft version you opened the world on, and the address.
Match the version
In the launcher, select the same Minecraft version you are hosting on. They do not need your mod loader or any mods, unless your world itself uses content mods.
Add the server
Choose Multiplayer, then Add Server, give it any name, and paste the
e4mc.linkaddress into Server Address.Join
Save it and choose Join Server. Do not add a port — the address already carries everything needed.
e4mc commands
With cheats enabled, e4mc adds a small command set. /e4mc doctor is the one to remember — it is what the mod's author asks for when someone reports a problem.
| Command | What it does |
|---|---|
/e4mc doctor | Writes a full diagnostic report to a log file. Run this before asking for help anywhere. |
/e4mc restart | Restarts the hosting session. Often clears a stuck or dropped relay connection. |
/e4mc stop | Ends the session and takes the address offline while you keep playing. |
Keep strangers out of your world
This is the part most e4mc tutorials skip, and it matters. A LAN world has no whitelist and no ban list by default, because Mojang never expected one to be reachable from the internet. While your session is live, anyone holding the address can walk in.
In practice addresses do leak — pasted into a public Discord, shared onward by a friend, or left in a screenshot. e4mc has an answer for this: a configuration option (restoreDedicatedCommands) that restores the dedicated-server moderation commands on a LAN world.
- Turn on the dedicated commands in e4mc's config, then use
/whitelist onand/whitelist add <name>exactly as you would on a real server. Our whitelist guide covers the full command set. - Use
/banand/pardonfor anyone who turns up uninvited; without the config option, a LAN world gives you neither. - Share the address privately — a direct message, not a public channel — and remember it changes next session anyway.
- Run
/e4mc stopthe moment you are done hosting, rather than leaving the session open while you build alone. - Back up the world first. Anyone who joins can break blocks. Copy the save folder before the first session with new people.
Is e4mc safe?
For the mod itself, the honest answer is yes, with the usual caveats. It is open source, so the code can be read by anyone, and it asks for no account and no payment. The risks are not really about the software:
- Your traffic passes through someone else's relay. Unless Dialtone puts you in a direct connection, your game traffic is relayed by e4mc's infrastructure. That is inherent to how any tunnel works, e4mc included.
- Your world is open to whoever has the address. This is the real risk, and it is the section above, not a flaw in the mod.
- Download it from Modrinth, CurseForge or the project's own repository. Minecraft mods are a well-known malware vector, and reuploads on random sites are where that happens.
- Your home IP is not exposed. Friends connect to the relay hostname, not to you — which is a genuine advantage over port forwarding.
e4mc vs Essential Mod
These are the two mods people compare, and they solve the same problem in opposite ways. The deciding question is whether your friends are willing to install something.
| e4mc | Essential Mod | |
|---|---|---|
| Friends must install it | No | Yes, all of them |
| How you invite | Send an address | Friends list and invites in-game |
| Extra features | None — it does one job | Cosmetics, chat, screenshots, accounts |
| Works with a vanilla launcher | Yes, for everyone joining | No |
| Open source | Yes | Partly |
| Cost | Free | Free, with paid cosmetics |
Put simply: e4mc if anyone joining is on vanilla, Essential if your whole group already runs mods and wants the social features. Nothing stops you having both installed and using whichever suits the evening.
Older Minecraft versions: e4mc Retro
The main mod covers modern versions. If you play on something older, a separate community backport called e4mc Retro, by xhyrom, reaches back much further. It is a different project from a different author, so support and releases are separate.
| Mod | Minecraft versions | Loaders |
|---|---|---|
| e4mc | 1.17 and newer | Fabric, Quilt, Forge, NeoForge |
| e4mc Retro | 1.6.4, 1.8.x, 1.9–1.12.2 | Forge |
e4mc not working? Common errors
Start here regardless of the symptom: update to the newest e4mc for your version, reproduce the problem, then run /e4mc doctor. That produces the log the author asks for, and it often names the cause outright.
An error occurred in e4mc
The mod's catch-all message, so it has several causes. Work through them in order: confirm the e4mc build matches your Minecraft version *and* loader; update to the latest release; turn off any VPN, proxy or "network protection" feature in your antivirus, which commonly conflicts; and try a different network, such as a phone hotspot, to rule out one that blocks QUIC. If it survives all that, run /e4mc doctor and report the log to the project.
No address appears in chat when you open to LAN
The mod is not loading at all. Check it is in .minecraft/mods, that the launcher profile actually uses your mod loader, and — on Fabric — that Fabric API is installed alongside it. A .jar for the wrong loader loads silently and does nothing.
Friends get "connection timed out"
Usually the session ended or the address is stale. A new address is issued per session, so confirm they have today's. If it is current, run /e4mc restart to rebuild the relay connection, and check your own internet is up. The general causes are in how to fix connection timed out.
A getsockopt or connection-refused error
Something local is blocking the connection before it leaves your machine. Allow Java through your firewall for the network type you are on, and turn off VPN software, which reroutes the traffic e4mc depends on. What the message itself means: connection refused: getsockopt.
Outdated client or outdated server
Not an e4mc problem. The person joining is on a different Minecraft version from the one you opened the world on. They switch their launcher to match yours; the mod loader is irrelevant to them.
It is laggy for everyone else
All traffic goes through your computer and your home upload, which is where the ceiling usually is. Reduce the render distance in the LAN settings, close other uploads, and expect worse results over Wi-Fi than a cable. Distance to the relay also adds latency, so a friend on another continent will always feel it.
It worked yesterday and not today
Check the address is the current one, then rule out an update: a Minecraft or loader update can leave you running a mismatched e4mc build. If everything matches, the relay may be having trouble — try /e4mc restart and again a little later.
Alternatives to e4mc
e4mc is deliberately narrow: one world, open while you play, Java only. When that is not the shape you need:
- A tunnel service such as playit.gg does the same job for a real server jar, so the world stays up when you are not in it, and works for Bedrock too.
- A private network app such as Tailscale is stricter — nothing is published publicly at all — at the cost of everyone installing it.
- Essential Mod if your whole group is modded and wants invites instead of an address.
- A rented host or Realms when the world needs to run while your computer is off.
Our guide to playing with friends without a server compares all of these side by side. When your world outgrows a laptop and becomes something you want people to find, make it a proper server and list it publicly.
e4mc questions
What is e4mc?
e4mc is a free, open-source Minecraft mod by vgskye that gives your single-player world a public internet address when you use Open to LAN. Friends join from anywhere without a server, a Realm or port forwarding, and only the host installs the mod.
How does e4mc work?
Opening your world to LAN makes the mod connect outward to an e4mc relay server over QUIC. Your router allows outbound connections by default, so nothing needs forwarding. The relay gives your world a public hostname and passes players back down that connection. Since version 6.0.0, Dialtone can also connect two players directly when both have the mod.
Do my friends need e4mc to join?
No. Only the host installs it. Everyone joining uses ordinary unmodded Minecraft and just needs the same game version and the address.
Is e4mc safe?
The mod is open source and needs no account, so it is safe in itself as long as you download it from Modrinth, CurseForge or the official repository. The real risk is that a LAN world has no whitelist by default, so anyone with your address can join. Enable e4mc's restoreDedicatedCommands option so you can use /whitelist and /ban.
Does e4mc work with mods?
Yes. e4mc does not care what else is installed. If your world uses content mods, though, everyone joining needs those same mods — that requirement comes from the mods, not from e4mc.
Is e4mc better than Essential Mod?
For playing with people on vanilla Minecraft, yes, because they install nothing. Essential is the better pick if your whole group already runs mods and wants friends lists, invites and cosmetics built in.
Does e4mc work on Bedrock Edition?
No. e4mc is Java Edition only. For Bedrock, use a tunnel service with Bedrock Dedicated Server on UDP port 19132, or a Realm.
Does the e4mc address stay the same?
No. A new address is issued each time you open the world, so you need to send the current one to your friends each session.
Why does e4mc say an error occurred?
It is a catch-all message. The usual causes are a build that does not match your Minecraft version or loader, an out-of-date release, a VPN or antivirus network filter, or a network that blocks QUIC. Update first, then run /e4mc doctor to produce a diagnostic log.
Can I use e4mc on older Minecraft versions?
The main mod supports 1.17 and newer. For 1.6.4, 1.8.x and 1.9 to 1.12.2 there is a separate community backport called e4mc Retro, by a different author.