Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Musa_Productions

This adds ACTUALLY functioning UPnP so you don't need to port forward!

Report MusMus_UPnP?

MusMus UPnP

MusMus_UPnP

Hey guys! We all wished we had UPnP, right? We thought: "Oh my God, it would be so cool to have UPnP! No more playit.gg or port forwarding! He he!" But then, we realise there wasn't a version for 26.3 servers. "Aw man, now I can't use UPnP! And there aren't any other mods! Boo hoo!" However, something new was introduced...

MusMus UPnP!

Everyone in 26.3 could be happy and get UPnP. But only people with Fabric servers. That means only they were celebrating and the rest were crying. But, a few days ago, it was introduced to Velocity! Now, more and more versions are being introduced, including Forge and NeoForge. Soon, there will be MusMus UPnP for everybody. Ok, now to the technical stuff.

How to use it!

Alright, there are many commands in this plugin, and I'll teach them ALL to you.

  • /upnp add {port number} {tcp|udp|both} - This adds a forwarding rule with choosing your own port and protocol. For Java, it will usually be 25565 TCP, but the port number depends on what is in server.properties.
  • /upnp reload - Reloads all the rules. It will eventually auto-reload, though.
  • /upnp retry - Retry if your rules fail to work.
  • /upnp close {port number} {tcp|udp|both} - Disable a port but not remove it.
  • /upnp remove {port number} {tcp|udp|both} - Removes a port completely.

I also have a config.json so you can configure all your stuff there. By default, it'll look like this:

{
  "enabled": true,
  "useServerPort": true,
  "customPort": 25565,
  "openTcp": true,
  "openUdp": false,
  "retryIntervalMinutes": 1,
  "extraPorts": [
    {
      "port": 24454,
      "protocol": "UDP"
    },
    {
      "port": 19132,
      "protocol": "both"
    }
  ]
}

For your main port, put the one in server.properties, then add other ports that need connections, like Geyser or SVC. The "retryIntervalMinutes" line is for how often it reloads. I recommend 5-10 mins if you don't want console spam, but I like to do 1 min.

Sponsors

THIS WAS ALL ME!

Information

Category
Admin Tools
Published
December 4, 2026
License
0Downloads
0Stars

Pinned Versions