About 2,460,000 results
Open links in new tab
  1. How to specify the port an ASP.NET Core application is hosted on?

    May 21, 2016 · When using WebHostBuilder in a Main entry-point, how can I specify the port it binds to? By default it uses 5000. Note that this question is specific to the new ASP.NET Core …

  2. How do I get client IP address in ASP.NET Core? - Stack Overflow

    Feb 23, 2015 · Can you please let me know how to get client IP address in ASP.NET when using MVC 6. Request.ServerVariables ["REMOTE_ADDR"] does not work.

  3. How to get current domain name in ASP.NET - Stack Overflow

    Oct 4, 2014 · I want to get the current domain name in asp.net c#. I am using this code. string DomainName = HttpContext.Current.Request.Url.Host; My URL is localhost:5858but it's …

  4. asp.net - .NET - Get protocol, host, and port - Stack Overflow

    I know I can use Request.Url.AbsoluteUri to get the complete URL, and I know I can use Request.Url.Authority to get the host and port, but I'm not sure of the best way to get the …

  5. How can I get the baseurl of my site in ASP.NET Core?

    @SruthiVarghese I don't think you can resolve host url from startup. My understanding is .NET Core are all console app, your startup decides how it's hosted. So the same exact code can …

  6. How to read configuration settings before initializing a Host in …

    Oct 23, 2019 · Before initializing the application Host I need to read some settings from the application's configuration to setup some other things. In ASP .NET Core 2.x to read settings …

  7. Host ASP.NET Core in a Windows Service - Stack Overflow

    Nov 8, 2023 · After investigating the issue, the below answer will tell you how to deploy the worker service and asp.net core web app to windows service.

  8. ASP.NET Core This localhost page can’t be found

    ASP.NET Core This localhost page can’t be found Asked 8 years, 8 months ago Modified 1 year, 4 months ago Viewed 250k times

  9. How to Self Host a ASP.NET Core WebAPI with Console App?

    I have a fully functional ASP.NET Core Web API built with .NET 8, and it runs smoothly in Visual Studio. Now, I'm looking to create a separate console application to host this Web API using …

  10. How to host multiple .NET Core apps under the same URL?

    How do I host ASP.NET Core applications all under one website as different "Applications", meaning they resolve to the same domain name (https://www.example.com and the forward …