Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get host ip address asp.net core

var httpConnectionFeature = httpContext.Features.Get<IHttpConnectionFeature>();
var localIpAddress = httpConnectionFeature?.LocalIpAddress;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #host #ip #address #core
ADD COMMENT
Topic
Name
6+7 =