WebService 获取客户端信息

前端之家收集整理的这篇文章主要介绍了WebService 获取客户端信息前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

https://blog.csdn.net/chuntian1983/article/details/2233191
https://www.cnblogs.com/00OO/archive/2011/04/30/2033633.html
https://www.cnblogs.com/kingboy/archive/2013/08/18/3266255.html
https://www.cnblogs.com/davytitan/archive/2012/09/13/2682852.html

string?result?=?HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
???if?(null?==?result?||?result?==?String.Empty)
???{
????result?=?HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
???}
???if?(null?==?result?||?result?==?String.Empty)
???{
????result?=?HttpContext.Current.Request.UserHostAddress;
???}
???return?result;

猜你在找的WebService相关文章