You can get the actual ip of the client using this code below (it will get the real client ip, even if the client is using a proxy)
string ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR");
if (!string.IsNullOrEmpty(ip))
{
string[] ipRange = ip.Split(',');
ip = ipRange[0];
}
else
{
ip=Request.ServerVariables("REMOTE_ADDR");
}
The can be done rather simple using a
Response.Redirect
.
Good luck!