Click here to Skip to main content
15,892,674 members
Articles / Web Development / ASP.NET / ASP.NET Core

Getting Host Information from the Current URL in ASP.NET Core 3.1

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
1 Feb 2020CPOL1 min read 17.4K   1  
How to get the host information of web app having situational based URLs without hardcoding it.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
United States United States
I am 5 times C# Corner MVP, a blogger and technical contributor at various forums like Microsoft TechNet, C# Corner, Code Project ,etc. I received several awards my community contributions. I have also presented technical contents as an speaker.

Comments and Discussions