Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Maximum hosts cannot exceed {16}

Discussion in 'General Discussion' started by alonso_actionreaction, Oct 12, 2018.

  1. alonso_actionreaction


    Mar 24, 2018
    We are developing our real-time backend server to run on Unity and, in order to optimize resources, we run multiple servers within the same Unity instance (as in, in the same Unity process). It runs quite well until we try to instantiate the 17th server, where we get this exception consistently:
    maximum hosts cannot exceed {16}
    It would seem that Unity is limited to listen on a maximum of 16 UDP ports. If that is the case, is there any way we can overcome this limitation?
  2. Joe-Censored


    Mar 26, 2013
    This isn't a forum for support questions, but you might want to follow up on what happened with the changes mentioned at the end of this thread:

    Between Unet's terrible memory allocations and the fact it is deprecated and will be removed soon, I'd consider moving to a different networking solution.
    Socrates, Kiwasi and Ryiah like this.