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
Web access problem with Android Nexus 7
The MTU is one of the
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.
Another possibility is the heavy JS code in the main UI.
I tried to decrease the MTU
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?
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
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)