Back to mods
Force Port project artwork

Modrinth · Minecraft mod

Force Port

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Force Port release matches 1.2.2?

Updated 5 months ago
Best match for your filters 1.0.0
Game version 1.0, 1.1, 1.2.1
Loader legacy-fabric

Force Port 1.0.0 targets 1.0, 1.1, 1.2.1 with legacy-fabric. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.

Where it goes

Is Force Port required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release legacy-fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does Force Port 1.0.0 need?

1.0.0 on 1.2.2. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Force Port without breaking your instance.

Built for Force Port 1.0.0 on 1.2.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.0, 1.1, 1.2.1 with legacy-fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does Force Port add?

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.

Project description from Modrinth.

Pick your setup

Force Port by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

143 available setups

Showing the newest 12 of 99 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Force Port versions and loaders

1 of 5 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.