Click here to Skip to main content
15,898,222 members

Comments by Code_seeker_ (Top 35 by date)

Code_seeker_ 27-Aug-17 14:46pm View    
Then how can I achieve white list IPs for my application
Code_seeker_ 8-Aug-17 16:45pm View    
Here is my code, do I need to make any changes at IIS level to get X FORWARDED FOR value ?
string strIpAddress;
strIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (strIpAddress == null)
{
strIpAddress = Request.ServerVariables["REMOTE_ADDR"];
}
REMOTE ADDRE giving me local IP address which I don't need, all I need is public IP address.
Code_seeker_ 21-Mar-13 3:02am View    
ya sure..
Code_seeker_ 21-Mar-13 2:11am View    
-SA see above explanation...its very nice..
Code_seeker_ 21-Mar-13 2:00am View    
Got.... thanq very much....great explanation....