Ole8700 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
1 stars 0 forks source link

HABDroid's problem #253

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.in my pc, use android VM to run HABDroid app

2.in my pc, run openHAB server(The demo server provided by openHAB project)
it is a local server.

3.HABDroid  app cannot be access to openHAB server. but in my pc using google 
browser can be access to openHAB server.

The link is:
http://10.0.2.2:8080/openhab.app?sitemap=demo

The result:
ERROR:Sitemap'demo/rest/sitemaps'could not be found

I run tomcat server in my pc, android VM can be access to tomcat server by 
"10.0.2.2:8080". It indicates the communication between my local pc and android 
VM is good.

in my phone, HABDroid app can be access to the demo server  in demo mode.
in actual, the demo server's IP is public. NOT my case.

What version of the product are you using? On what operating system?
the latest version of HABDroid, windows xp

Original issue reported on code.google.com by duanruiq...@gmail.com on 24 Apr 2013 at 7:13

GoogleCodeExporter commented 9 years ago
Do you have Tomcat running on your PC at the same time as openHAB, or did you 
use Tomcat only for the connection test?
What URI did you configure in HABDroid? It should only be http://10.0.2.2:8080, 
not http://10.0.2.2:8080/openhab.app?sitemap=demo

Original comment by kai.openhab on 24 Apr 2013 at 2:14

GoogleCodeExporter commented 9 years ago
Hi Kai
Thanks

I only run Tomcat or openHAB every time. Do not run both of them at the same 
time in my pc.

The URI which i configure is  http://10.0.2.2:8080/openhab.app?sitemap=demo
, but when i try the uri "http://10.0.2.2:8080", it still don't work.

I try the uri "http://10.0.2.2:8080" by using the browser in VM phone, it also 
cannot be access to the openHAB server.

Original comment by duanruiq...@gmail.com on 25 Apr 2013 at 2:20

GoogleCodeExporter commented 9 years ago
Thanks Kai
The problem is solved.
The uri "http://10.0.2.2:8080" is right.

Original comment by duanruiq...@gmail.com on 25 Apr 2013 at 6:48

GoogleCodeExporter commented 9 years ago
Glad to hear that it works.

Original comment by kai.openhab on 25 Apr 2013 at 7:21