I am working on a IBM Worklight hybrid app POC. I am facing an issue with connecting an app to the WL server.
Once deployed on worklight console, when i view it in the browser, it's able to connect to the worklight server hosted on my local machine (even when the app is accessed from mobile chrome browser).
However after adding the Android environment and package the application in cordova container, and run the apk from my android device(build and run from eclipse), i am unable to connect to the worklight server hosted on my machine.
Both the device and my laptop are on the same network ( i accessed the worklight console app from device chrome browser, works fine).
I have verified the below
- that wlclient.properties points to my local machine IP
- that my worklight server is bound to that IP
- that i am running worklight server on port 80(to avoid any firewall issues, in fact i also turned my local firewall off)
- I captured packets using fiddler, could not see the request hitting the server.