server icon indicating copy to clipboard operation
server copied to clipboard

The docker image doesn't expose the web UI

Open emildinchev opened this issue 3 years ago • 2 comments

Hi, I'm following your description in the README.md how to start the Blazor server, using: docker run -p 51000:51310 -p 51001:5001 adminshellio/aasx-server-blazor-for-demo

The REST server is working, but the blazor Web UI is not working. In the corresponding Dockerfile, the exposed ports are 51310 and 51210.

Can you please check and give me some advice how to continue?

Best regards, Emil

emildinchev avatar Apr 04 '22 09:04 emildinchev

When running the blazor image the following warning is thrown:

Microsoft.AspNetCore.Server.Kestrel[0]
      Unable to bind to http://localhost:5001 on the IPv6 loopback interface: 'Cannot assign requested address'.

Whatever causes this needs fixing.

NunoSav avatar Apr 07 '22 09:04 NunoSav

The warning mentioned by @NunoSav seems to be a .net core + docker specific issue. You might try this workaround: https://stackoverflow.com/questions/59657499/unable-to-bind-to-http-localhost5000-on-the-ipv6-loopback-interface-cannot

br-iosb avatar Apr 21 '22 11:04 br-iosb

how does rest server working for you? I am trying to run it on Mac but I cannot reach using Localhost with 51310. is there any trick about it?

EmilAlipiev avatar Oct 29 '23 18:10 EmilAlipiev

Hi @EmilAlipiev,

Are you using the latest image/code? If yes, please try the port 5001, for the Blazor UI as well as the REST APIs. You can also access the swagger UI at the same port with "http://localhost:5001/swagger/index.html".

The port 51310 is no more supported in the latest version. Please refere the documentation at "https://github.com/admin-shell-io/aasx-server" for more information.

juileetikekar avatar Oct 30 '23 11:10 juileetikekar