Example #1
0
        private void FrmNetwork_Load(object sender, EventArgs e)
        {
            ns = new NetworkSpeed();
            ns.NotityInfoEvent += Ns_NotityInfoEvent;
            ns.Start();

            lblPublicIP.Text = NetworkInfo.GetPublicIP();
        }
Example #2
0
 public void GetPublicIPTest()
 {
     Assert.AreEqual("59.46.127.59", NetworkInfo.GetPublicIP());
 }