ModsFinder

UPNP for dedicated servers

by PigCart

UPNP for dedicated servers opens port forwarding on the router automatically whenever a dedicated Minecraft server starts, so friends can connect without manual setup.

FabricForgeNeoForgeServer-side onlyMIT LicenseOpen source1.16.5 – 1.21.8

What it does

The mod forwards the ports of a dedicated server through UPNP as the server starts, and closes them again when the server stops. Its purpose is to set up a server for friends quickly, without manual port forwarding in the router or a third-party hosting service. Once the ports are mapped, the upnp command in chat shows the mapped IP address that players need to connect.

By default only TCP port 25565 is forwarded, the standard port for Minecraft servers. Forwarding can also cover UDP traffic alongside TCP when a setup calls for it.

The mod is server-side only, so only the server needs it and players join without installing anything. It requires Architectury API, and Fabric API on Fabric. It is published for Fabric, Forge and NeoForge across 26 release versions, 1.16.5 – 1.21.8, and is open source under the MIT License.

Key features

  1. Automatic port forwarding

    Ports are mapped through UPNP when the dedicated server starts and released when it stops.

  2. Chat command for the address

    The upnp command shows the mapped IP address to share with players.

  3. TCP and UDP forwarding

    Forwarding can cover UDP as well as TCP, with TCP 25565 forwarded by default.

  4. Extra ports from config

    Ports used by other mods, such as voice or Geyser bridges, can be added in the config file.

Compatibility

Latest build for each game version and loader.

1.21.x9 of 9 versions with builds
1.21.82.1.1Not available2.1.1
1.21.72.1.1Not available2.1.1
1.21.62.1.1Not available2.1.1
1.21.52.1.1Not available2.1.1
1.21.42.1.1Not available2.1.1
1.21.32.1.1Not available2.1.1
1.21.22.1.1Not available2.1.1
1.21.12.1.1Not available2.1.1
1.212.1.1Not available2.1.1
1.20.x7 of 7 versions with builds
1.20.62.1.1Not available2.1.1
1.20.52.1.1Not available2.0.3
1.20.42.1.12.0.02.0.3
1.20.32.1.12.0.02.0.3
1.20.22.1.12.0.02.0.3
1.20.12.1.12.0.02.0.2
1.202.1.12.0.02.0.2
1.19.x4 of 4 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x1 of 1 version with builds
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Friends-only server

A player hosts a small world for friends on a home connection without renting a server or configuring the router by hand.

Who it’s for: Players who run a dedicated server on their own network and want friends to join without manual port forwarding, or who would rather not pay a third-party hosting provider for a small group.

Questions

Does UPNP for dedicated servers need Fabric API?

Architectury API is required on every loader. Fabric API is required on Fabric, so it must be installed next to this mod on that loader.

Does a player need to install this mod?

No. Players join without it, since only the server has to run the mod.

How are extra ports added for a mod like Simple Voice Chat?

The relevant ports are added to the mod's config file, and they are forwarded along with the default TCP 25565 port when the server starts.

In the catalog

UPNP for dedicated servers is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 17,695 mods support Minecraft 1.21.8.

More from PigCart

All projects

Similar mods

What the author says

Automatically forwards ports for your dedicated minecraft server with UPNP. Opens ports when the server starts, and closes them when it stops. Useful if you want to quickly set up a server for your friends without the hassle of third party hosting or manually forwarding ports. The forwarded ports are configurable in…
PigCart, on the Modrinth page

Official listing

Owner
PigCart
Published
2022-06-16
Updated on Modrinth
2025-07-17
Facts verified
2026-10-15

Tags