What is the most efficient way to host multiple games on different ports?
Background: I am using Unity and Mirror API. I have created a game which uses Telepathy transport. When I host a game, the game searches a local database which contains the list of available ports and assigns an available port (range: 30000 to 40000). But the main issue is for me to host games, I have to run the game's exe file separately for each instance as the game runs in a scene with network manager and telepathy transport.
'
Issue: Is is the most efficient way to run the game server? If not, is there a way for me to instantiate scenes in a game so that I can change the port of the telepathy transport in each scene and all other gameobjects remain different for clients connected to each instance?
Answer by Ahmet_Dem · Nov 02, 2020 at 10:10 PM
@ankitpsaraogi I also have this problem. However I need help on with this, "When I host a game, the game searches a local database which contains the list of available ports and assigns an available port (range: 30000 to 40000)." How did you do that? Can you help me? I also am using the Telepathy Transport. I have a server but I cant figure out how to assign available ports.