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.
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
Automatic port forwarding
Ports are mapped through UPNP when the dedicated server starts and released when it stops.
Chat command for the address
The upnp command shows the mapped IP address to share with players.
TCP and UDP forwarding
Forwarding can cover UDP as well as TCP, with TCP 25565 forwarded by default.
Extra ports from config
Ports used by other mods, such as voice or Geyser bridges, can be added in the config file.
Gallery
Compatibility
Latest build for each game version and loader.
1.21.x9 of 9 versions with builds
1.20.x7 of 7 versions with builds
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
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
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?
Does a player need to install this mod?
How are extra ports added for a mod like Simple Voice Chat?
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
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…
Official listing
- Modrinth page
- modrinth.com/mod/dedicatedmcupnp
- Owner
- PigCart
- Published
- 2022-06-16
- Updated on Modrinth
- 2025-07-17
- Facts verified
- 2026-10-15