Thanks for your reply sir,
I wrote the following code in my login.aspx
protected void Page_Load(object sender, EventArgs e)
{
string[] ipaddr = new string[2];
ipaddr[0] = "192.168.10.223";
ipaddr[1] = "192.168.10.228";
string ipaddress;
ipaddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (ipaddress == "" || ipaddress == null)
ipaddress = Request.ServerVariables["REMOTE_ADDR"];
int flag=0;
for (int i = 0; i < ipaddr.Length; i++)
{
if (ipaddr[i] == ipaddress .ToString())
{
flag = 1;
break;
}
}
if (flag == 0)
{
Response.Redirect("Error.aspx");
}
else
{
Response.Redirect("Home.aspx");
}
}
Above code return the Proxy ip address.I need to check the ip address of all system connected in LAN.
my proxy ip is 122.165.71.14
How to acheive this...