HomeJavaModsUPnP
UPnP
ModsJava

UPnP

by TheBozzz34 · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21 · Paper⬇ Download for 1.20.1–1.20.6 · Paper⬇ Download for 1.20 · Paper⬇ Download for 1.19 · Paper⬇ Download for 1.18 · Paper⬇ Download for 1.17 · Paper⬇ Download for 1.21 · Purpur⬇ Download for 1.20.1–1.20.6 · Purpur⬇ Download for 1.20 · Purpur⬇ Download for 1.19 · Purpur⬇ Download for 1.18 · Purpur⬇ Download for 1.17 · Purpur⬇ Download for 1.21 · Spigot⬇ Download for 1.20.1–1.20.6 · Spigot⬇ Download for 1.20 · Spigot⬇ Download for 1.19 · Spigot⬇ Download for 1.18 · Spigot⬇ Download for 1.20–1.20.4 · Bukkit⬇ Download for 1.19 · Bukkit⬇ Download for 1.18 · Bukkit⬇ Download for 1.17 · Bukkit
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

UPnP

bStats

A lightweight Minecraft plugin that automatically opens server ports through UPnP (Universal Plug and Play), eliminating the need for manual port forwarding configuration on compatible routers.

Features

How It Works

This plugin uses the UPnP Protocol to communicate with your router and automatically create port forwarding rules. This means players can connect to your server without you manually configuring your router.

Installation

  1. Download the latest release from Releases
  2. Place the JAR file in your server's plugins folder
  3. Restart your server
  4. The plugin will automatically open your server port

Configuration

After the first run, edit plugins/UPnP/config.yml:

# Whether to close ports when the server stops (recommended: true)
close-ports-on-stop: true

# Enable anonymous usage statistics via bStats
bstats: true

# TCP ports to open (includes server port by default)
tcp:
  - 25565      # Minecraft server
  - 8123       # Dynmap (example)

# UDP ports to open
udp:
  - 19132      # Geyser/Bedrock (example)

Common Port Examples

Requirements

Troubleshooting

Ports aren't opening

  1. Check that UPnP is enabled on your router (consult your router's manual)
  2. Verify the ports aren't already in use by another application
  3. Check server logs for error messages
  4. Some ISPs or routers block UPnP for security reasons

Security Considerations

While UPnP is convenient, it does open ports on your network. Only open ports you actually need, and consider disabling UPnP on your router if you're not actively using this plugin.

Statistics

This plugin uses bStats to collect anonymous usage statistics. You can disable this in the config file or globally in plugins/bStats/config.yml. View statistics at bStats.

License

This mod is licensed under the GNU Lesser General Public License v3.0 only (LGPL-3.0-only).

What this means for users and developers

What you must do

What you do not have to do

License history

Versions released prior to January 3rd 2026 were licensed under AGPL-3.0-only. You can read more about the change here.

Versions released on or after January 3rd 2026 are licensed under LGPL-3.0-only.

For the full license text, see the LICENSE file.

Credits

Built using the weupnp library.


Note: This plugin is provided as-is. Always ensure you understand the security implications of opening ports on your network.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more