Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     client = new P2PClient(pubNubPublishKey, pubNubSubscribeKey);
     client.OnNewPeerConnection += GotPeer;
     Debug.Log("My local ip: " + client.GetLocalIPAddress());
     Debug.Log("My local port: " + client.localPort);
     Debug.Log("My external ip: " + client.GetExternalIp());
     Debug.Log("My external port: " + client.externalPort);
 }