
ModsJava
Remember LAN Port
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Requirements
- Fabric Loader (Fabric API is not needed)
Behavior
Creates a config file
config/remember-lan-port.propertieswith the default Minecraft server port value 25565 if it does not already existAutofills the port from the config file into the Open to LAN menu; autofilled port number is green
If the port has changed, saves it to the config file on successfully opening to LAN
Only works across all worlds, not per-world
That's it
See Also
For more fully-featured LAN settings mods that support older game versions, try:
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as remember-lan-port-1.0.0+1.21.1.jar — drop this file into the mods folder
- Download size: 8 KB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.