ASP.NET Web API Self-Host 환경에서 클라이언트 IP 주소 가져오기

ASP.NET Web API Self-Host 프로젝트에서는 OWIN Self-Host와는 다른 방식으로 클라이언트 IP 주소를 얻을 수 있습니다. 주요 방법은 다음과 같습니다: Request.Properties["System.ServiceModel.Channels.RemoteEndpointMessageProperty"].Address 속성을 활용합니다. Self-Host 프로젝트 설정 개요 Self-Host 프로젝트를 구성하는 일반적인 단계는 다음과 같 ...

7월 11일 00:24에 게시됨