Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    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. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    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.