예제 #1
0
        public static string GetExternalIP()
        {
            HTTPGet req = new HTTPGet();

            req.Request("http://checkip.dyndns.org");
            string[] a  = req.ResponseBody.Split(':');
            string   a2 = a[1].Substring(1);

            string[] a3 = a2.Split('<');
            string   a4 = a3[0];

            return(a4);
        }
		public static string GetExternalIP(){

			HTTPGet req = new HTTPGet();
        	req.Request("http://checkip.dyndns.org");
        	string[] a = req.ResponseBody.Split(':');
        	string a2 = a[1].Substring(1);
        	string[] a3=a2.Split('<');
        	string a4 = a3[0];
			return a4;
		}