How can we get Client IP Address in ASP.NET?
-
Request.ClientAddress
-
Request.UserHostAddress
-
Request.IPAddress
-
Request.Client.IPAddress
B
Correct answer
Explanation
The Request.UserHostAddress property in ASP.NET returns the IP address of the client making the request. This is the standard way to retrieve the client's IP in both Web Forms and MVC. The other property names shown do not exist in the Request object.