dwhitacre / WindowsGSM.ForgeMC

🧩 WindowsGSM plugin for supporting Minecraft: Forge Server
MIT License
4 stars 2 forks source link

investigate possible RCON port and port increment conflict #7

Open dwhitacre opened 3 years ago

dwhitacre commented 3 years ago

currently the rcon port gets set to the server port + 10 and the server port gets incremented by 1 for each new server. This seems like it will be a problem once you get to the 10th server and now your server port would conflict with the rcon port.

two possibilities:

  1. windowsgsm handles this somehow, ie it know about the rcon port and will skip it.... doubtful, as its not mapped into the class in any form or fashion.
  2. like windows gsm will try to bind to the already bound port causing a new server to not start. then we just change the rcon port to +1 and the port increments to 2 (currently 1)