IBM Worklight - Is it possible to change ip address of the android device? -
i trying deploy worklight application android device, without success. same application has been deployed ipad, there function allows user set ip address. know not perfect solution right serve purpose.
i want know if same function possible in android devices.
nada,
please mention worklight studio version using. comments sounds worklight 5.x.
unlike ios, android has internal server within.
if use following in application-descriptor.xml: <worklightserverrooturl>http://${local.ipaddress}:8085</worklightserverrooturl>
the application worklight server inside device. that, not work.
when using android device, sure value give worklightserverrooturl ip address of machine hosting worklight server (meaning, machine have eclipse installed worklight studio plug-in).
- open cmd window
- type
ipconfig - copy public ip address of machine
- use value
worklightserverrooturl - re-build , deploy
- run application on device
by doing above, application (whether installed on ipad, android emulator or android device) try reach actual machine hosts server.
notes:
- the feature you're talking about, called "worklight settings", is not meant end-users. should turned off when moving production
- this feature does not change ip address of device; changes server url application connect to
this feature exists in android, , accessible tapping on physical menu button in device , on "worklight settings" button
i suggest, though, follow steps instead, project configured.
if mean want change ip address of device whatever reason, that's not related worklight.
Comments
Post a Comment