Back to Practical Aspnetcore

WebApplication - Listen to a specific url and port

projects/minimal-hosting/web-application-server-specific-url-port/README.md

latest554 B
Original Source

WebApplication - Listen to a specific url and port

This sample uses the brand new WebApplication hosting class. In this example we set the Kestrel web server to listen to a specific url and port. You can open the page at http://localhost:3000.

You can read the implementation of WebApplication here and its sibling WebApplicationBuilder here