How to solve: Web Engine container fails to resolve hostname of Docker host machine and cannot connect to Identity Service or License Server

How to solve: Web Engine container fails to resolve hostname of Docker host machine and cannot connect to Identity Service or License Server

Reproduced in Version: IIoT Services 14.1.2404.17001

This is a fixed bug (BUG 281835), but it will only be included in the documentation with the new releases.

If you encounter following Error description: Error: Identity Server not available. Status code: 500

The above error occurs when a link is clicked in the web engine behind which there is a ScreenSwitchFunct to a login screen.





Problem Description:

With certain Docker Desktop for Windows installations, the Web Engine container cannot find the Identity Service via it's public hostname.
It's a DNS resolution issue within the container. So technically the stack of Docker on Windows is giving issues on certain machine configurations.

With setting the DNS manually in the Windows Docker Desktop Engine, this will also allow correct name resolution with the host machine.
With this approach, it is even not necessary anymore to add the "extra_hosts" entry for the Web Engine.

There is a solution:

  1.   Update to the newest build (14.2.2405.8001)

Steps done:

.env file now updated to include:


When configured the Web Engine is able to be successfully connected.