Mods / UPnP Mod

Tags:
QoL
Authors:
RealTamari143, Hatrune_Cubic, Masin
Side:
Server
Created:
Jul 1st 2025 at 3:33 PM
Last modified:
Oct 5th 2025 at 11:31 AM
Downloads:
315
Latest release (for Vintage Story 1.21.1 - 1.21.2, outdated):
UPnPMod-5.1.2-rev1.zip  1-click install

The only thing this mod does it the act of invoking "/serverconfig upnp 0 && /serverconfig upnp 1" every 51.2s. There is nothing more... :333 (Go play signalis or something very good game)


The question is, why would you need to do that?
Well there is a problem that sometimes when you host a server people cannot join or rejoin after some time and server needs to be restarted, this mod was made to counter that and rather than reloading the server it is just invoking this command
that should fix the problem on most servers!

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
5.1.3 upnpmod
1.21.1 - 1.21.2
125 Oct 5th 2025 at 11:25 AM UPnPMod-5.1.2-rev1.zip 1-click install

"Should" fix crashes on version 1.21+ (Changed .net 7 to .net 8)

5.1.2 upnpmod 164 Jul 1st 2025 at 3:34 PM UPnPMod-5.1.2b.zip 1-click install

Probably will work on vintage story older than my pc but idk (From 1.17 to 1.20)


8 Comments (oldest first | newest first) (threaded | flat)

BopiDope, Jul 3rd at 1:16 AM

will this ever be updated man ;(

litesalt, Dec 1st 2025 at 4:45 PM (modified Dec 2nd 2025 at 11:14 PM)

Installed the newest ver (5.1.2-rev.1) - not getting any errors but also not getting the upnp on/off in the console. Was this one updated to .net 8 or should I keep waiting? (edit, checked the change log so thats not it hmmmmm) nevermind user error oops

thank you for making this its been such a huge lifesaver

RealTamari143 , Oct 2nd 2025 at 9:30 PM (modified Oct 2nd 2025 at 9:31 PM)

 LauraLizard 

 

I should and will post an update soon, just need to update the .net from ver 7 to version 8!
(I was away for some time but with newer .net it should work for modern versions (1.21-pre1+)

LauraLizard, Sep 16th 2025 at 7:40 PM

having the issue of after entering a world, when you leave the world the game crashes after a about 20 seconds. on version 1.21.1

Crash Report
Running on 64 bit Windows 10.0.19045.0 with 32637 MB RAM
Game Version: v1.21.1 (Stable)
9/16/2025 11:05:15 AM: Critical error occurred
Loaded Mods: 
System.NullReferenceException: Object reference not set to an instance of an object.
   at Vintagestory.Server.ServerMain.ReceiveServerConsole(String message) in VintagestoryLib\Server\ServerMain.cs:line 1268
   at Vintagestory.Server.ServerCoreAPI.InjectConsole(String message) in VintagestoryLib\Server\API\ServerCoreAPI.cs:line 193
   at Vintagestory.ServerMods.UpnpModCore.UpnpHandler(ICoreServerAPI api) in C:\Users\User\source\repos\UpnpMod\UpnpMod\UpnpMod\main.cs:line 16
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
Gunnernacho, Jul 18th 2025 at 8:51 AM

Hey you guys are absolute legends, whenever i host a public server via internet and for whatever reason like a desyinc or some glitch wich forces one of my friends to re-join i dont have to fully restart the server.

also, people can just drop in\out whenever they want at last.

 

thanks a bunch!

Fskn, Jul 1st 2025 at 11:56 PM

Adaltan this is for if you have the upnp bug where it fails after a few minutes and has to be restarted or clients cant rejoin the server. i made an autohotkey script to automate it but these guys made a mod.

Adaltan, Jul 1st 2025 at 10:01 PM

What is this for?

Masin, Jul 1st 2025 at 3:35 PM

this is so silly :33