The API has been updated. Not sure when it changed but according to Damien Edwards in late December, you can now do this:
var remoteIpAddress = request.HttpContext.Connection.RemoteIpAddress;
More Related Contents:
- How to register multiple implementations of the same interface in Asp.Net Core?
- Select Tag Helper in ASP.NET Core MVC
- Resolving instances with ASP.NET Core DI from within ConfigureServices
- Getting value from appsettings.json in .net core
- ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate
- How to resolve IOptions instance inside ConfigureServices?
- Change route collection of MVC6 after startup
- ASP.NET Core form POST results in a HTTP 415 Unsupported Media Type response
- How to return a specific status code and no contents from Controller?
- Custom Authentication in ASP.Net-Core
- Where are the ControllerContext and ViewEngines properties in MVC 6 Controller?
- ASP.NET Core 2.0 disable automatic challenge
- Windows authentication in asp.net 5
- Run a background task from a controller action in ASP.NET Core
- ASP.NET Core Identity – get current user
- How to add IHttpContextAccessor in the Startup class in the DI in ASP.NET Core 1.0?
- Where is Request.IsAjaxRequest() in Asp.Net Core MVC?
- ToArrayAsync() throws “The source IQueryable doesn’t implement IAsyncEnumerable”
- ASP.NET Core Get Json Array using IConfiguration
- ASP.Net Core MVC – Client-side validation for custom attribute
- Injection of IUrlHelper in ASP.NET Core
- Simple token based authentication/authorization in asp.net core for Mongodb datastore
- Bind Dictionary with list in viewmodel to checkboxes
- How to give custom implementation of UpdateAsync method of asp.net identity?
- How to return HTTP 500 from ASP.NET Core RC2 Web Api?
- How to stream with ASP.NET Core
- ‘HttpPostedFileBase’ in Asp.Net Core 2.0
- How to implement a “pure” ASP.NET Core Web API by using AddMvcCore()
- Sharing Cookies Between Two ASP.NET Core Applications
- ASP.NET 5 Authorize against two or more policies (OR-combined policy)