Skip to content

Commit 2a64d95

Browse files
author
Matthew Bate
committed
Fix API Hosting Access
1 parent 96beee5 commit 2a64d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BHD-ServerManager/API/Services/EmbeddedApiHost.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void Start(int port = 5000)
3030
_host = Host.CreateDefaultBuilder()
3131
.ConfigureWebHostDefaults(webBuilder =>
3232
{
33-
webBuilder.UseUrls($"http://localhost:{port}");
33+
webBuilder.UseUrls($"http://0.0.0.0:{port}");
3434
webBuilder.ConfigureServices(services =>
3535
{
3636
services.AddControllers();
@@ -98,7 +98,7 @@ public void Start(int port = 5000)
9898

9999
_runTask = _host.RunAsync(_cts.Token);
100100

101-
AppDebug.Log("EmbeddedApiHost", $"API server started on http://localhost:{port}");
101+
AppDebug.Log("EmbeddedApiHost", $"API server started on http://0.0.0.0:{port}");
102102
}
103103

104104
/// <summary>

0 commit comments

Comments
 (0)