I couldn't track a machine using ip-address because I usually get proxy server address
我无法使用ip地址跟踪机器,因为我通常会得到代理服务器地址。
public static String GetIP()
{
String ip =
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (string.IsNullOrEmpty(ip))
{
ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
}
return ip;
}
Are there any other ways to track a machine correctly?
有其他方法可以正确跟踪机器吗?
1 个解决方案
#1
3
Reading ip-address is the only way But with that also you can't trace exactly due to Network address translators,Proxy servers and VPN servers etc.
读取ip地址是唯一的方法,但是由于网络地址转换器、代理服务器和VPN服务器等原因,您无法精确地跟踪它。
You have to understand this its privacy issue
你必须了解它的隐私问题
Even in iOS also they have forbidden to read UDID right from iOS 7 as it infringes users privacy
即使在iOS中,他们也禁止从ios7中读取UDID,因为它侵犯了用户的隐私。
Hope this solves your problem
希望这能解决你的问题
#1
3
Reading ip-address is the only way But with that also you can't trace exactly due to Network address translators,Proxy servers and VPN servers etc.
读取ip地址是唯一的方法,但是由于网络地址转换器、代理服务器和VPN服务器等原因,您无法精确地跟踪它。
You have to understand this its privacy issue
你必须了解它的隐私问题
Even in iOS also they have forbidden to read UDID right from iOS 7 as it infringes users privacy
即使在iOS中,他们也禁止从ios7中读取UDID,因为它侵犯了用户的隐私。
Hope this solves your problem
希望这能解决你的问题