Force Port

Force Port

A mod that forces the port to always be the same when using the "Open To LAN" feature!

by
3.7K Downloads
fabriclegacy-fabricquiltmanagementtechnologyutility
Rent Server with this Mod

Screenshots

Open To LAN screen

About this Mod

Force Port

Download from Modrinth

A mod that forces the port to always be the same when using the "Open To LAN" feature!

Client-side only!

Demonstration

The configuration menu on recent Minecraft versions

Usage

Force Port allows you to modify the default port used when opening your world to LAN. This is useful for those who want to use a specific port for their server.

Just go to the installation location for that Minecraft instance, and open the config folder. You should see a file called forceport.txt. Open it with a text editor and change the port to your desired port.

Compatible Versions

Mod Version Game Version(s) Mod Version Title
1.0.1 1.14+ force-port-fabric-1.0.1
1.0.0 1.14+ force-port-fabric-1.0.0

Important Note

  • This mod hasn't been tested full on older Quilt versions or older mod loaders. However, this mod does work on Fabric for 1.14 and above using Mod Loader 0.16.0+
    • If you're using the latest Minecraft versions, you can use this mod without any issues.
  • The Fabric API is NOT required for this mod to work.
  • This mod is built with Java 21, so you need to change your Java version to 21 (or above) in the instance settings to run this mod, on any versions prior to 1.20.5.
  • As of 1.0.1, if the config file is not valid, it will default to 25565 (the default port for Minecraft servers). This is to prevent the mod from crashing. If the mod doesn't seem to work, please verify your config file!

Changelog

1.0.1

  • Fixed a bug where the mod would crash if newlines were added into the forceport.txt file (a default feature in some Linux text editors).
  • Added a check to make sure the port is a number and is between 0 and 65535.

Available Versions

Force Port 1.0.2+26.1release
MC 26.1fabric, quilt
March 25, 2026
Force Port 1.0.1 (Fabric)release
MC 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11fabric, quilt
May 11, 2025
Force Port 1.0.0 - Legacy Fabric 1.6 - 1.13release
MC 1.6.1, 1.6.2, 1.6.4, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.7.10, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2legacy-fabric
November 19, 2024
Force Port 1.0.0 - Legacy Fabric 1.3-1.5release
MC 1.0, 1.1, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.1, 1.3.2, 1.4.2, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.5.1, 1.5.2legacy-fabric
November 19, 2024
Force Port 1.0.0release
MC 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5fabric, quilt
October 18, 2024

How to Install Force Port on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Force Port". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabriclegacy-fabricquilt

Minecraft Versions

26.1, 1.21.11, 1.21.10 (+96 more)

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Force Port server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1). You can switch loaders with one click in the panel.

Is Force Port compatible with fabric and legacy-fabric and quilt?

Force Port officially supports fabric, legacy-fabric, quilt for Minecraft 26.1, 1.21.11, 1.21.10. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Force Port – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Force Port consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Force Port with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

26.11.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.3+89 more