IHttpConnectionFeature Interface

Information regarding the TCP/IP connection carrying the request.

Namespace
Microsoft.AspNetCore.Http.Features
Assemblies
  • Microsoft.AspNetCore.Http.Features

Syntax

public interface IHttpConnectionFeature
interface Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature

Properties

Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.ConnectionId

The unique identifier for the connection the request was received on. This is primarily for diagnostic purposes.

Return type:System.String
string ConnectionId { get; set; }
Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.LocalIpAddress

The local IPAddress on which the request was received.

Return type:System.Net.IPAddress
IPAddress LocalIpAddress { get; set; }
Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.LocalPort

The local port on which the request was received.

Return type:System.Int32
int LocalPort { get; set; }
Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.RemoteIpAddress

The IPAddress of the client making the request. Note this may be for a proxy rather than the end user.

Return type:System.Net.IPAddress
IPAddress RemoteIpAddress { get; set; }
Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.RemotePort

The remote port of the client making the request.

Return type:System.Int32
int RemotePort { get; set; }