abp
abp copied to clipboard
It is not work to modify the listening port

internal static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
webBuilder.UseUrls("http://localhost:5003", "https://localhost:5004");
})
.UseAutofac()
.UseSerilog();
I changed the port, but the website is still listening 5000
I can't reproduce your problem, and I think it has nothing with abp, Please check microsoftion document https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-3.1

Maybe because of I replaced the configuration.When I comment out the code,it works.
But I don't know why
@wingqing1314 This issue has nothing to do with abp.
You can check the source code of ASPNET Core's UseUrls to see why.