Page 1 of 1

Web access problem with Android Nexus 7

Posted: 08 Apr 2013 23:39
by devauda
I did a test to be able to access my Razberry from the internet. As the rasberry has a private IP, i used an internet debian server with port forwarding and a OpenVPN tunnel between Razberry and debian server.

Here is my solution:
Razberry.......................DSL router......Internet.........Debian server.........Internet..........Client Android
ETH0............................ETH0................................................ETH0.................................WLAN0
192.168.0.41...............192.168.0.1................................195.1.2.3................................87.1.2.3
TUN0==========OpenVPN Tunnel========TUN0
10.8.0.6...................................................................10.8.0.1

The idea is to give access to my Razberry to all Internet connected clients.

To access the razberry web interface I enter 195.1.2.3:8083 on the client and it is forwarded to 192.168.0.41:8083 over the OpenVPN tunnel
I also have the Mini Demo Code, you proposed here https://github.com/PoltoS/z-way-mini-ui/, on the Razberry (apache2), to access it I enter 195.1.2.3:80 on the client and it is forwarded to 192.168.0.41:80 over the OpenVPN tunnel.

Everything is working fine from my laptop (windows and Linux), I can access both web interface and mini demo code.

But with my Android Nexus 7 Tablet, I can only access the mini Demo Code. When trying to access the web interface the connection hang.

I thought it could be problem with MTU on android, but I don't understand why mini code is ok and normal web interface is not OK...

I tried to reduce the MTU of the OpenVPN tunnel and i test it with MTU-test, but it is still the same.

Have you any idea to help me to access the web interface?

Thanks
A. Devaud

The MTU is one of the

Posted: 08 Apr 2013 23:39
by PoltoS
The MTU is one of the possible cause. Try to set it 1400 on RaZberry.

Another possibility is the heavy JS code in the main UI.

I tried to decrease the MTU

Posted: 08 Apr 2013 23:39
by devauda
I tried to decrease the MTU to 1400 but it doesn't solve the problem.
What is the web server used on Razberry fot the main UI?
I installed apache2, would the transfer of the main UI from the default web server to apache2 be a possible solution?


Yes, it is possible, but you

Posted: 08 Apr 2013 23:39
by PoltoS
Yes, it is possible, but you need to tweak it a bit to use cross-domain JS to access the Z-Way server. Please look on the https://github.com/PoltoS/z-way-mini-ui example (this is a page that can be executed even from local filesystem and connect to RaZberry Z-Way server)