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