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.
Usage:
The forwarded ports are configurable in the config file at config/upnp.txt.
Use the /upnp command to see in chat which ports are mapped and the IP players need to connect to the server with.
Both UDP and TCP ports can be opened. By default only the port TCP 25565 will be opened (the default port for Minecraft servers).
If you are using mods such as Simple Voice Chat or Geyser, you must add the relevant ports to the config.
How to Install UPNP for dedicated servers (Mod)
UPNP for dedicated servers by PigCart is verified for Fabric, Forge, Neoforge across Minecraft versions 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1 (latest release: 2.1.1, file size: 22 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1) and platform (Fabric, Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
- Move the downloaded UPNP for dedicated servers file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- lowered neoforge support to 1.20.6
- tweaked logging
- upnp command shows multiple ip addresses, if existing
- lowered neoforge support to 1.20.6
- tweaked logging
- upnp command shows multiple ip addresses, if existing
- lowered neoforge support to 1.20.6
- tweaked logging
- upnp command shows multiple ip addresses, if existing
- ipv6
- supports neoforge for mc1.21.1 and later
- supports fabric for 1.19.4 and mc1.20.1 and later
- ipv6
- supports neoforge for mc1.21.1 and later
- supports fabric for 1.19.4 and mc1.20.1 and later
- ipv6
- supports neoforge for mc1.21.1 and later
- supports fabric for 1.19.4 and mc1.20.1 and later
- new config, please make sure to rewrite your config. fixes versioning issue with geyser.
- updated dosse/upnp with fixes and basic error logging
- new config, please make sure to rewrite your config. fixes versioning issue with geyser.
- updated dosse/upnp with fixes and basic error logging