Remember LAN Port
by Nnnes
Remember LAN Port keeps the port number used last time when a player opens a singleplayer world to LAN, so the same port is filled in automatically.
What it does
When a player opens a world to LAN through the Open to LAN menu, the port field is filled with the port used on the previous opening rather than a new random value. The port is remembered per world, so each world keeps its own setting. Changing the port and opening LAN saves the new value to the config file, and the autofilled number is shown in green as a visual cue.
The mod is for players who share singleplayer worlds with friends over a local network and want friends to reconnect on a known address. It needs Fabric Loader and Fabric API, and it is client-side only, so the server side needs nothing. Remember LAN Port is open source under The Unlicense and is published for Fabric for 1.20.1 – 1.21.1, with 1.0.0+1.21.1 as the latest file for 1.21.1.
Key features
Last port reused
The port used the last time a world was opened to LAN is filled in automatically the next time.
Per-world memory
Each world stores its own port, so different worlds do not overwrite one another's setting.
Saved config
Changing the port and opening LAN writes the new value to the config file.
Visible autofill
The autofilled port number is displayed in green in the Open LAN menu.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Repeat LAN sessions
Friends who join the same world regularly can reuse one address instead of receiving a new port each time.
Who it’s for: Players who host singleplayer worlds to LAN for friends on the same network, using Fabric.
How it compares
LANProtect is client-side only, open source under the MIT License and published for 1.21.5. LAN Server Options is open source under CC0 1.0 Universal and runs on client and server for 26.2, so it needs installing on the server as well as by players, unlike this mod.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Remember LAN Port | Fabric | 1.20.1 – 1.21.1 | Client-side only | 2024-08-24 |
| LANProtect | Fabric | 1.21.5 | Client-side only | 2025-06-02 |
| LAN Server Options | Fabric | 26.2 | Client and server | 2026-06-23 |
Questions
Does Remember LAN Port need Fabric API?
Does the server need Remember LAN Port?
Does the remembered port apply to every world?
Which game versions does the mod support?
In the catalog
Remember LAN Port is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 32,366 mods support Minecraft 1.21.1.
Similar mods
Official listing
- Modrinth page
- modrinth.com/mod/remember-lan-port
- Owner
- Nnnes
- Published
- 2023-09-08
- Updated on Modrinth
- 2024-08-24
- Facts verified
- 2026-10-15
