Bboy820602
Bboy820602

Reputation: 151

IBM Worklight request timeout

I made an app that connect to server to get some info

I use HTTPAdapter to send a post request

It runs successfully with preview on my browser

I've check that tha adapter and code has no bug

but it failed when I run it on my virtual device(3G network)

Request timeout for [http://172.16.100.106:10080/WistronAppProject/apps/services/api/WistronApp/android/query]

why i can't send request with different ip domain ?

it has to run in the same network?

there is some other problem?

Upvotes: 0

Views: 533

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

The device must be able to connect to the same network Worklight Server is in.

If your server does not have a PUBLIC IP address, meaning it is running for example in your office network that is not available outside, then your device MUST be connected to the same office network via WiFi. If you connect via 3G, it will not be able to find the Worklight Server and connect to it.

Upvotes: 2

Related Questions