Multiple choice technology web technology

How can we get Client IP Address in ASP.NET?

  1. Request.ClientAddress

  2. Request.UserHostAddress

  3. Request.IPAddress

  4. Request.Client.IPAddress

Reveal answer Fill a bubble to check yourself
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.