nerdexam
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)
  • A
    79% (30)
  • B
    8% (3)
  • C
    13% (5)

Community Discussion

No community discussion yet for this question.

Full 98-363 Practice