ASP.NET 접속자 IP 얻어오기

개발/프로그래밍2009. 11. 3. 23:30
728x90
// Look for a proxy address first
String szIP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
// If there is no proxy, get the standard remote address
String szIP = Request.ServerVariables["REMOTE_ADDR"];

 
 
 
728x90

작성자

Posted by 일퍼센트

관련 글

댓글 영역