///<summary>
///获取客户端外网IP 省份城市运营商
///2012年12月18 日 15:07
///</summary>publ ic classGetOutMessage
{
/// <summary>
///获取全部信息
/// </summary>
///<retur ns>一段网页代码</retur ns>private static string getOutMessage()
{
WebCl ientcl ient=newWebCl ient();cl ient.Encoding=System.Text.Encoding.Default;string response= cl ient.UploadString("http://iframe.ip138.com/ipcity.asp", "");Match mc=Regex.Match(response,@"location.href=""(.*)""");response=cl ient.UploadString(mc.Groups[1].Value, "");return respo nse;
}
/// <summary>
///外网IP
///</summary>
///<retur ns>外网IP地址</retur ns>publ ic static string getOutIp()
{string response=getOutMessage();int i =response.IndexOf("[") +1;string ip=response.Substring(i,14);string ips=ip.Replace("] ", "").Replace(" ", "");return ips;
}
/// <summary>
///省份
/// </summary>
///<retur ns>省份</retur ns>
publ ic static string getOutProvince()
{string response=getOutMessage();int i =respo nse.Index Of("自") + 2;strin g provi nce = respo nse.Subst ring(i, respo nse.Index Of("省") - i+1);return provi nce;
}
///<summary>
///城市
/// </summary>
///<retur ns>城市</retur ns>publ ic static string getOutCity()
{string response=getOutMessage();int i =respo nse.Index Of("省") + 1;strin g city=respo nse.Subst ring(i, respo nse.Index Of("市") - i + 1);return city;
}
/// <summary>
///运营商
/// </summary>
///<retur ns>运营商</retur ns>publ ic static string getOutProvider()
{string response=getOutMessage();int i =respo nse.Index Of("市") + 2;string provider= response.Substring(i,2);return provi der;
}
}
腾讯云双十一活动已于今天正式开启了,多重优惠享不停,首购服务器低至0.4折,比如1C2G5M轻量应用服务器仅48元/年起,2C4G8M也仅70元/年起;个人及企业用户还可以一键领取3500-7000元满减券,用于支付新购、续费、升级等各项账单;企业用户还可以以首年1年的价格注册.COM域名。活动页面:https://cloud.tencent.com/act/double11我们分享的信息仍然以秒...
 
				  GigsGigsCloud新上了洛杉矶机房国际版线路VPS,基于KVM架构,采用SSD硬盘,年付最低26美元起。这是一家成立于2015年的马来西亚主机商,提供VPS主机和独立服务器租用,数据中心包括美国洛杉矶、中国香港、新加坡、马来西亚和日本等。商家VPS主机基于KVM架构,所选均为国内直连或者优化线路,比如洛杉矶机房有CN2 GIA、AS9929或者高防线路等。下面列出这款年付VPS主机配置信息...
 
				  优惠码年付一次性5折优惠码:TYO-Lite-Open-Beta-1y-50OFF永久8折优惠码:TYO-Lite-Open-Beta-Recur-20OFF日本vpsCPU内存SSD流量带宽价格购买1核1.5G20 GB4 TB1Gbps$10.9/月购买2核2 G40 GB6 TB1Gbps$16.9/月购买2核4 G60 GB8 TB1Gbps$21.9/月购买4核4 G80 GB12 TB...
