xavier150 / MMVS

Macro Micro VR Service - Public bug report and tracking
10 stars 38 forks source link

Configurable ports for multiplayer server #101

Open TheBestNightSky opened 1 year ago

TheBestNightSky commented 1 year ago

I suggest adding a setting to change what port the multiplayer server operates on. Default can remain 7777. For the in-game server this can be in the Options menu. For the dedicated server software this can be in a settings file with json formatting or what ever you feel like using really.

Connecting to a server would remain largely unchanged. When connecting on the default port 7777, users would simply enter the IP address by itself. ie: 255.255.255.255 When connecting to a server on an alternate port users would enter the IP address and port together separated by a colon. ie: 255.255.255.255:7778

It would also be a good idea to allow users to save servers they have connected to in a list to simplify this process for them, only having to do it once and adding an indicator that pings the server to show if it is online or not.

Reasons to implement this:

  1. Just a good idea because if the default port clashes with existing software there is basically no fix at the moment.
  2. It opens the possibility of multi-hosting on the same machine, say you want to host the latest stable and unstable builds at the same time. Renting or buying a whole other server just to do that would be absurd for most consumers.
  3. If full scale modding becomes a thing, that simple feature opens literal worlds of possibilities.