Server IP address.
// Requests info from the master server and prints // the ip of each host.
function Start() { var hostData : HostData[] = MasterServer.PollHostList(); for(var element : HostData in hostData) { var tmpIp : String = ""; for(var i : int = 0; i < element.ip.Length; i++) { tmpIp = element.ip[i] + " "; } Debug.Log(element.gameName + " ip: " + tmpIp + ":" + element.port); } }
no example available in C#
Did you find this page useful? Please give it a rating: