Jump to content

Fskn

Vintarian
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Fskn

  1. the issue is upnp failing after a certain amount of time, ive made another post with a workaround i cooked up for myself that works if you cant port forward.
  2. Hey guys, everyones read the thousand threads complaining about not being able to reconnect after a server has been up 10 minutes, one fix is forwarding the severs port and disabling upnp but if youre behind GC-NAT like i am youll find out you cant forward ports you can reload upnp with server commands and its good for another 10 minutes but no one wants to have to manually do that every time. download autohotkey , youll need v1 not v2 right click somewhere, new -> autohotkey script, name it whatever you want, select empty and save it in the same folder you launch your server from. open the script file and copy paste the following #Persistent ; keeps script running until you close it SetTitleMatchMode, 2 ; mode to find window name SetTimer, SendCommands, 600000 ; 600000 = 10 minute timer return SendCommands: IfWinExist, VintagestoryServer ; name of the window to look for { ControlSend,, /serverconfig upnp 0{Enter}, VintagestoryServer ; first command sent to VintagestoryServer window Sleep, 1000 ; 1 second delay between commands ControlSend,, /serverconfig upnp 1{Enter}, VintagestoryServer ; second command sent to VintagestoryServer window } return what this script does is finds the window named "VintagestoryServer" if it can, pastes 2 server commands that disable then enable upnp to the window and actions them with a small delay in between every 10 minutes without having to switch focus to that window, just run the script when you run the server and close it when you close the server. have had it running for a few days and its completely solved the issue on my server i self host. enjoy
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.