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