Answer the question
In order to leave comments, you need to log in
Asp Net Core on IIS only works on localhost. Why?
How to set up IIS+Asp Net Core for Internet access?
At the moment, access is only from localhost - the server gives an error for other requests.
How to run an Aps Net Core project on IIS or Kestrel so that everything works from any computer?
Answer the question
In order to leave comments, you need to log in
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseApplicationInsights()
.UseUrls("http://0.0.0.0:5001")
.Build();
host.Run();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question