I've configured my Web project to work with my computer's IP (192.168.0.2) creating certificate for https etc. If I use https://192.168.0.2:7058/ all works fine
builder.WebHost.ConfigureKestrel(serverOptions =>
{
serverOptions.Listen(IPAddress.Parse("192.168.0.2"), 708, listenOptions =>
{
listenOptions.UseHttps(@"d:\aspire.pfx", "develPassword");
});
serverOptions.ListenAnyIP(7508, listenOptions =>
{
listenOptions.UseHttps(@"d:\aspire.pfx", "develPassword");
});
});
but in AppHost I'm unable to make the program to show correct endpoints (http+https).. instead I see "http://localhost" etc that obviously won't work.
Have I missed to configure something?
Web console log
2025-07-18T11:41:50 Waiting for resource 'apiservice' to enter the 'Running' state. 2025-07-18T11:41:50 Finished waiting for resource 'apiservice'. 2025-07-18T11:41:52 info: Yarp.ReverseProxy.Configuration.ConfigProvider.ConfigurationConfigProvider[1] 2025-07-18T11:41:52 Loading proxy data from config. 2025-07-18T11:41:52 warn: Microsoft.AspNetCore.Server.Kestrel[0] 2025-07-18T11:41:52 Overriding address(es) 'https://localhost:58040, http://localhost:58041, https://localhost:7058, https://localhost:7508';. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead. 2025-07-18T11:41:52 info: Microsoft.Hosting.Lifetime[14] 2025-07-18T11:41:52 Now listening on: https://192.168.0.2:7058 2025-07-18T11:41:52 info: Microsoft.Hosting.Lifetime[14] 2025-07-18T11:41:52 Now listening on: https://[::]:7508 2025-07-18T11:41:52 info: Microsoft.Hosting.Lifetime[0] 2025-07-18T11:41:52 Application started. Press Ctrl+C to shut down. 2025-07-18T11:41:52 info: Microsoft.Hosting.Lifetime[0] 2025-07-18T11:41:52 Hosting environment: Development 2025-07-18T11:41:52 info: Microsoft.Hosting.Lifetime[0] 2025-07-18T11:41:52 Content root path: C:\Progetti\net\CATest\CATest.Web