Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Maximum hosts cannot exceed {16}

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

  1. alonso_actionreaction

    alonso_actionreaction

    Joined:
    Mar 24, 2018
    Posts:
    7
    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

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    4,395
    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:

    https://forum.unity.com/threads/error-maximum-hosts-cannot-exceed-16.455368/

    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.