bk138 / droidVNC-NG

VNC server app for Android that does not require root privileges.
GNU General Public License v2.0
1.3k stars 186 forks source link

Not a bug but mobile network does work with VPN #221

Closed freebrowser1 closed 1 month ago

freebrowser1 commented 1 month ago

Describe the idea

Not a bug, but a way to VNC over mobile network to the cellphone using a VPN. VNC is not encrypted in itself, however a VPN (or SSH tunnel) is encrypted. The documentation states:

Connect to your local Wi-Fi. For accepting a connection your device should be connected to some Local Area Network that you can control, normally it is a router. Connections via data networks (i.e. your mobile provider) are not supported.

Well, when using a VPN (a VPN on a server you can control and thus obtain the VPN tunneled ip addresses) or SSH tunnel it is supported.

To Reproduce

  1. Have OpenVPN app on the phone and an OpenVPN server on e.g. a VPS.
  2. Turn Wifi off and turn mobile network on.
  3. Connect the Android OpenVPN client to your server.
  4. Start DroidVNC and note the OpenVPN tunneled IP address, something like 10.8.0.x (shown in this app).
  5. Connect the computer using the VNC client with the same VPN server which gets a similar tun ip address like 10.8.0.y (last number different)
  6. Connect from VNC client to ip 10.8.0.x.

In Wireguard I did not test this successfully.

bk138 commented 1 month ago

Am I right in that you're proposing a WAN setup via VPN, not reporting a bug?

freebrowser1 commented 1 month ago

Am I right in that you're proposing a WAN setup via VPN, not reporting a bug?

Yes, this is not a bug, but I tell that I could reproduce the VNC connection over mobile internet.

bk138 commented 1 month ago

OK thanks!