Remote access with a Zerotier OpenWRT router
I made a post on how to use the in-built vpn server of a router along with SCRCPY to remote access the Nvidia Shield. This time, i will show you how you can achieve the same thing but with an OpenWRT router and Zerotier. This makes the OpenWRT a Zerotier router aswell, meaning you will be able to reach the LAN devices that's connected to it. When the zerotier is active, you can call adb connect and stream the Nvidia Shield with scrcpy from another zerotier device such as laptop/pc.
Requirements: OpenWRT router (Router A and Router B needs different ips to avoid ambiguity or subnet conflicts)
Installation of ZeroTier onto OpenWRT router
-
Follow this setup: https://kevron2u.com/set-up-a-zerotier-network-on-openwrt/
-
Go into Luci->Network->Firewall
-
Make sure Zerotier => lan is set to {accept, accept, accept}
Zerotier settings
Example) 10.147.17.* ZT range, 192.168.10.1 Router, 10.147.17.30 ZT Router
10.147.17.0/24 (LAN)
192.168.10.0/24 via 10.147.17.30
OpenWRT crontab settings
This is optional, but because Zerotier tends to go offline use crontab to schedule a restart of the zerotier after some time. I personally picked every 3rd hour.command: crontab -e
0 */3 * * * /etc/init.d/zerotier restart
Comments Section
Was looking for a clear guide on how someone would setup a router with zero tier, this is the first one i've come across after multiple searches. thanks for posting!
Been a while since i made it hopefully it still works, i dont own a openwrt router anymore switch over to Asus with Fusion VPN + Wireguard but glad it helped 🙂
Of course you can always tweak the settings, like cronjob etc