Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Relay server bandwidth question

Discussion in 'Multiplayer' started by Scramblejams, Oct 20, 2015.

  1. Scramblejams

    Scramblejams

    Joined:
    Oct 19, 2015
    Posts:
    7
  2. JeremyUnity

    JeremyUnity

    Unity Technologies

    Joined:
    Mar 4, 2014
    Posts:
    147
    Hi Scramblejams,
    The relay bandwidth is calculated up and down independently.
    Currently we only support using matchmaker with relay. The reason is because for internet play you'd have to either have all players do port forwarding or use a NAT solution, and we haven't implemented a NAT punch through feature yet.
    For matches on the same network where no NAT punch through would be needed you can do local broadcast discovery and avoid matchmaker entirely.
     
  3. Scramblejams

    Scramblejams

    Joined:
    Oct 19, 2015
    Posts:
    7
    Hi Jeremy, thanks for your response. Just to make sure I understand correctly, we get 4k/sec up and 4k/sec down, and those are separate budgets, if you will?
     
  4. JeremyUnity

    JeremyUnity

    Unity Technologies

    Joined:
    Mar 4, 2014
    Posts:
    147
    It's actually only tracking bandwidth down on each connection. Since Relay's job is to turn packets around it doesn't bother with another pool of up bandwidth stats, since what goes in must come out so to speak.
     
    Last edited: Oct 20, 2015
  5. Scramblejams

    Scramblejams

    Joined:
    Oct 19, 2015
    Posts:
    7
    Gotcha, thank you.