'How to get Now listening URL in .Net 6 inside the program.cs

Previous .Net Core version have startup.cs File Configuration method get

app.ServerFeatures.Get().Addresses).

.Net 6 It's return null value



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source