Search Unity

get RTT and IP address from the new transport

Discussion in 'Entity Component System' started by Opeth001, Jan 1, 2020.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,116
    Is it possible to get the RTT and the IP address from in the new Transport package ?
     
  2. timjohansson

    timjohansson

    Unity Technologies

    Joined:
    Jul 13, 2016
    Posts:
    473
    It is possible to calculate RTT the same way the ping samples in https://github.com/Unity-Technologies/multiplayer/ does, but you cannot get it directly from the transport since the transport does not know which packages are responses to what so it cannot calculate it.
    The IP is inside the NetworkEndPoint which you can get from the driver, but in the current version there is no public api to access the actual address from it. We will fix that and make it possible to get the raw address from the end point.
     
    Opeth001 and WAYNGames like this.