Search Unity

Can client players get other players' IPs?

Discussion in 'Multiplayer' started by Simba, Oct 17, 2013.

  1. Simba

    Simba

    Joined:
    Nov 8, 2010
    Posts:
    77
    Hello! Just a simple question, but I couldn't find an answer anywhere. Just using Unity's builtin system for networking, I call "player.externalIP" on a client and I get the server's IP, rather than the player I wanted to query. :eek:

    Is this normal? Obviously, one can send RPCs from the server to tell everyone what other players' IPs are, but I just want to check that I'm not missing something stupid. Google failed to find the answer this time D:

    Thanks in advance!
     
  2. mngmhds

    mngmhds

    Joined:
    Feb 2, 2013
    Posts:
    21
    Short answer? No. Long answer? Write a method to return the remote end point (ip address) associated with the given player name.
     
  3. Simba

    Simba

    Joined:
    Nov 8, 2010
    Posts:
    77
    Ok, thanks. I suspected as much. :)