Search Unity

  1. Unity 2018.3 is now released.
    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. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. 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:
    3,980
    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.