Clarion Appbroker H5 Application

Hi. I have just developed my first application under Clarion Appbroker. I added the H5 template & the application compiled easily. The application is loading in my local browser using the URL: http://localhost/exec/Appfolder/Appname.exe.0

However the I am unable to load this from any other machine. What is the URL to be used from any other machine ? Do I need to host the Appbroker service to any third party server ? I understood that my PC itself becomes the server running the Appbroker service. Have I got this wrong ? I tried the URL: http://XXX.XXX.XX.XX/exec/Appfolder/Appname.exe.0 but I just get the message “This site can’t be reached”. Are there any other settings ?

I am using Clarion 10.0.0 build number 12799. The Appbroker is also of the same build number

Hi,

From any other local pc in your local network use:
http://ip-adres-of-your-host-machine:port-number/exec/Appfolder/Appname.wap.0

For example:
http://192.168.0.123:8080/exec/Appfolder/Appname.wap.0

So it looks like that your are missing the port number.

Best regards
Jeffrey

Hi. Thanks, but I still get the message “This site can’t be reached” ERR_ADDRESS_UNREACHABLE. My default port number is 80 so I added that as suggested by you. I also changed the .exe to .wap as suggested in the URL. I am trying to connect from my Mobile, which is also on the same wifi network. Any other suggestions ?

Also how can one connect to this application if outside the local network ? Do I then have to host it on some other server ?

Hi,

  1. Perhaps you can set another port instead of 80, for example 8081.
  2. Add C:\AppBroker\AppBroker.exe to your firewall on the host machine.

Best regards
Jeffrey

Hi. Really appreciate your prompt responses. Tried what you suggested but still the same result. Also, how do you connect to the App from other networks ?

Hi,

Very weird it’s not working for you. Normally it’s very simple and it should “just” work.

To connect from the outside (everywhere):
Just open a port in your router, for example 8081, and forward this port to the local ip address/port of your host machine where the AppBroker is running. Then you can reach your H5 App everywhere by the following url:
http://your_external_ip-address:8081/exec/Appfolder/Appname.wap.0

Best regards
Jeffrey

1 Like

Hi,
Finally I have managed to get it working on other devices within the same network. Still having challenges in getting it to work from other networks. Thanks for the help.

Regards,

Vijay

You’re welcome!

Best regards
Jeffrey

Most likely your issue is down to the routing and firewalls in place between the your network and the others that you’re trying to connect from.