Friend Code Mod
by SoniEx2
Friend Code Mod lets players host a world and join it from a remote friend's computer through a short code, without port forwarding or a hosting service.
What it does
Open To... replaces the Open LAN flow with a Friend Code submenu that generates a code for the current world, and Direct Connect gets a matching submenu so a player can enter a code to join. Connections travel through the I2P anonymity network, and the connection is made through Multiplayer as usual.
Two kinds of code are supported: ephemeral codes, which tie to a single play session, and persistent codes, which are attached to a world and stay the same across sessions. World codes persist even when the world is opened on a different computer. Both sides need a running I2P router, since the mod does not bundle one. A router must be installed externally and configured with a SAM bridge. If no router is available, the game still launches and shows an error when a player tries to host or connect.
The mod began as a submission to a game jam, with a theme centered on the player. Its author describes the motivation as an alternative to centralized options such as Minecraft Realms, which the author considers tied to a large userbase and money, and which cannot run mods. Friend Code Mod is a Fabric mod for Minecraft 1.19 – 1.20.4, released under the 0BSD license. Its files are not open source, but the public source code and issue tracker are linked by the author.
Key features
Friend codes for hosting
Open To... offers a Friend Code submenu in place of Open LAN, so a world can be opened to remote players with one code.
Joining with Direct Connect
Direct Connect gains a Friend Code submenu where a player enters a code to reach a host.
Persistent and ephemeral codes
Codes can be tied to a single play session or stay bound to a world, so a world keeps its code between sessions.
I2P routing
Connections travel through a locally run I2P router that the player or server owner installs and configures separately.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Optional 1
How it compares
Remote Resource Pack and No Realms Button are both client-side only and open source under the MIT License, but neither offers a remote connection method, so they do not replace Friend Code Mod. TryHard FriendUtil is client-side only and not open source, published under All rights reserved for 1.21.11, which is outside the range this mod covers.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Friend Code Mod | Fabric | 1.19 – 1.20.4 | Client or server, optional | 2024-01-09 |
| TryHard FriendUtil | Fabric | 1.21.11 | Client-side only | 2026-03-30 |
| Remote Resource Pack | Fabric, Forge, NeoForge and Quilt | 1.18.2 – 26.3 | Client-side only | 2026-09-15 |
| No Realms Button | Fabric, Forge, NeoForge and Quilt | 1.16 – 26.3 | Client-side only | 2026-07-12 |
Questions
Does Friend Code Mod need Fabric API?
Does the server need the mod installed?
What happens if the I2P router is not running?
In the catalog
Friend Code Mod is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from SoniEx2
Similar mods
What the author says
This mod adds friend codes to Minecraft, which are an easy way to play in the same world with remote friends. They can be created by selecting "Open To...", which replaces "Open To LAN", and selecting the "Friend Code" submenu. They can be connected to through "Multiplayer" -> "Direct Connect", which also gets a…
Official listing
- Modrinth page
- modrinth.com/mod/friendcode
- Owner
- SoniEx2
- Published
- 2022-07-05
- Updated on Modrinth
- 2024-01-09
- Facts verified
- 2026-10-15