eclipse-basyx / basyx-applications

applications
MIT License
16 stars 26 forks source link

[BUG] AAS GUI does not work remotely #180

Closed lindertho closed 3 weeks ago

lindertho commented 4 weeks ago

Summary: There seems to be a problem using the AAS GUI remotely. When the setup example is used and accessed locally, it works fine. However, when the GUI is used remotely through a browser, it sometimes uses invalid localhost IPs even if the correct remote IPs are specified. We are unsure if this is an internal error or an issue on our side.

Steps to Reproduce:

  1. Host the example Docker compose on a remote server.
  2. Connect from a local machine.
  3. Specify the remote IPs in the endpoints and connect.
  4. Try to access one of the AAS.

Expected Behavior: The AAS can be accessed remotely.

Actual Behavior: The AAS cannot be accessed.

Screenshots image

Version eclipsebasyx/aas-gui:v2-240515

aaronzi commented 4 weeks ago

Hello @lindertho,

thank you for raising this issue. This is a configuration issue on your end. I would suspect that you are using the registry integration feature. For that you need to set the basyx.externalurl in the aas-env.properties (application.properties) file like this:

basyx.externalurl=http://10.3.1.52:8081
lindertho commented 3 weeks ago

Ah, perfect. Thank you for the help. Updating the basyx.externalurl in the aas-env.properties file resolved the issue.