Esempio n. 1
0
 // Constructor
 public MainPage()
 {
     InitializeComponent();
     MyIPAddress finder = new MyIPAddress();
     finder.Find((address) =>
     {
         MyIp = address;
     });
 }
Esempio n. 2
0
 void FindMyIP()
 {
     MyIPAddress my = new MyIPAddress();
     myip = my.Find();
     localEp = new IPEndPoint(myip, 3001);
 }