类的代码如下: using System; using System.Net; using System.Text.RegularExpressions; namespace Keleyi.Com { public class GetInternetIP { public static string GetIP() { using (var webClient = new WebClient()) { try { var temp = webClient.DownloadString("http…