解决办法:
在Program.cs文件里,修改如下:

    public class Program
    {
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args).Build().Run();
        }
 
        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .UseUrls("http://*:5000;https://*:5001");
 
    }

http://*:5000;https://*:5001。*代表任何地址 

可参考:https://blog.csdn.net/yenange/article/details/81675594

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2022-01-13
  • 2022-02-08
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-12-16
  • 2021-12-13
相关资源
相似解决方案