DeOps.DeOpsContext.FindLocalIP C# (CSharp) 메소드

FindLocalIP() 공개 메소드

public FindLocalIP ( ) : void
리턴 void
        public void FindLocalIP()
        {
            if (Sim != null)
            {
                SetLocalIP(Sim.RealIP);
                return;
            }

            try
            {
                WebClient client = new WebClient();
                client.DownloadStringCompleted += FindLocalIP_DownloadStringCompleted;
                client.DownloadStringAsync(new Uri("http://checkip.dyndns.org/"));
            }
            catch { }
        }