What is analog for HttpListener in .NET Core

As mentioned in the comments, WebListener (in the Microsoft.Net.Http.Server NuGet package) is the closest replacement, but has a different API. Alternatively, there is the Kestrel HTTP server, which is best consumed from the ASP.NET Core stack but can be used alone (but that is difficult to set up).

If you are porting, I'd suggest to wait until .NET Core 2.0, which has an API compatible HttpListener that works cross-platform and doesn't require you to completely change the code.


In .NET Core 2.0 we don't have that problem ( thanks Martin Ullrich), so now we need install Visual Studio Preview 2017 version 15.3 where we can use .NET Core 2.0.

But by default (as minimum for now) there don't have .NET Core 2.0 and we need install it after VS 2017 installation.

P.S: - thanks again Martin Ullrich - it's amazing, only 10 May ( 3 days before I have asked) .NET Core 2.0 was announcing - and I have it now