hi,
i am working on a bot in which i have to display offers to the user according to their current location.
i use this method to get user IP address :
String ip = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (string.IsNullOrEmpty(ip))
{
ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
}
but user IP that code Fetch is totally wrong ..
Is their any correct method to get user current location in bot framework C#.
hi,
i am working on a bot in which i have to display offers to the user according to their current location.
i use this method to get user IP address :
String ip = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (string.IsNullOrEmpty(ip))
{
ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
}
but user IP that code Fetch is totally wrong ..
Is their any correct method to get user current location in bot framework C#.