Microsoft
98-363 · Question #221
You need to return the Internet Protocol (IP) host address for a client that connects to a webpage. Which two code segments should you use? (Choose two.)
The correct answer is A. HttpContext.Current.Request.UserHostAddress; D. HttpContext.Current.Request.ServerVariables ["REMOTE_ADDR" ]. See the full explanation below for the reasoning.
Question
You need to return the Internet Protocol (IP) host address for a client that connects to a webpage. Which two code segments should you use? (Choose two.)
Options
- AHttpContext.Current.Request.UserHostAddress;
- BHttpContext.Current.Request.Server-Variables [ "REMOTE_HOST"];
- CHttpContext.Current.Request.url;
- DHttpContext.Current.Request.ServerVariables ["REMOTE_ADDR" ];
How the community answered
(38 responses)- A79% (30)
- B8% (3)
- C13% (5)
Community Discussion
No community discussion yet for this question.