2010-11-23 2 views

답변

2

(이 Windows 인증의 경우, 예를 들어, 로컬 호스트의 경우에도)에 대해 인증 서버를 의미합니다, 당신은 뭔가를 할 수 like :

private void onAuthenticateRequest(object sender, EventArgs e) { 
    var application = (HttpApplication) sender; 
    HttpContext context = application.Context; 

    string address = context.Request.ServerVariables["LOCAL_ADDR"]; 
} 

이렇게하면 현재 사용자 요청을 처리하는 서버의 IP 주소를 알 수 있습니다. 서버 의 이름이 인 경우 SERVER_NAME 또는 HTTP_HOST을 대신 사용할 수 있습니다.

관련 문제