What is an alternate way to get Web Site Visitor IP Address in Dot Net?

 Posted by Vishalneeraj-24503 on 3/1/2015 | Category: Visual Studio Interview questions | Views: 279 | Points: 40
Answer:

We can use REMOTE_ADDR from ServerVariables collection as:-
string Visitor_IP_Address = Request.ServerVariables["REMOTE_ADDR"];


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response