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