개발/프로그래밍

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