摘要: ASP.Net 中 MVC控制器中获取本地IP /// <summary> /// 获取IP /// </summary> /// <returns></returns> private string GetIP() { string ip = string.Empty; if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.ServerVariables["HTTP_VIA"])) ... 阅读全文
posted @ 2012-12-15 17:38 lhfly 阅读(8627) 评论(4) 推荐(0) 编辑