How to Share Android’s VPN connection over WiFi Hotspot (Root).
Most Android smartphones allow you to exchange mobile data via a hotspot. Some high-end Android phones like Samsung Note 9, Pixel 3 even allow Wi-Fi over hotspot. But in both cases, Android restricts the sharing of your VPN services. Fortunately, there is a workaround that allows you to do this by simply installing third-party apps.
This comes in handy if you want to watch geo-restricted content on devices like Chromecast and Roku that don’t have a built-in option to change DNS or install a VPN app. So let’s see how to share VPN on Android.
How to share a VPN on Android
Step 1. First of all, get a rooted Android device. Then you need to install the free VPN Hotspot app from the Google Play Store.
Read: How to set up your own VPN server in the cloud
Step 2: After installation, when you first open the application, you will be prompted for superuser (root) permission. If you don’t have Magisk Manager or SuperSU installed, the app doesn’t tell you that it’s not a rooted device.
Step 3. Turn on mobile Internet or Wi-Fi, respectively. Turn on the VPN app and then turn on the mobile hotspot.
Finally, go to the VPN Hotspot app and tap on Wi-Fi hotspot. This will create a virtual WLAN with a name such as “swlan0”. You need to click the switch next to it to enable the VPN hotspot.
If you get the error message “The process created is not a wrapper,” make sure you grant root privileges to the VPN Hotspot app.
Step 4: Then connect another device like Chromecast, Roku, or even your laptop to the mobile hotspot normally. You will have the same Wi-Fi name and credentials. Once connected to a mobile hotspot, your device appears on the Client tab in the VPN Hotspot app.
If there is no Internet on the connected device, change the DNS server to 22.214.171.124 or any public DNS server. Chances are high that the connected device will accept the DNS server as 192.168.43.1. Now this DNS server is your mobile phone, which has no entries. Hence, it cannot resolve DNS names for you.
You can, if the DNS server is up, by pinging 126.96.36.199 and then google.com. In most cases, the IP address will be pingable, but the DNS name google.com will not. This means that the DNS server cannot resolve the DNS name “google.com” because it has no records or the DNS server is not configured for it. ping google.com
VPN hotspot app is a great app for sharing your VPN with all your home devices. Note that the VPN hotspot does not make any permanent changes to your Wi-Fi or provider files, with one exception. For Android 9+ devices, when configuring relay credentials, the application modifies the “/data/misc/wifi/p2p_supplicant.conf” or “/data/vendor/wifi/wpa/p2p_supplicant.conf” files. To get it back, simply delete this file and reboot your device.
If the Internet stops working on any device, try flushing DNS or restarting the affected device. For any other questions about the app, you can visit the VPN Hotspot GitHub page. The app is under active development and the developer responds quickly to requests.
If you have any further questions or clarifications, let me know in the comments below.
Also read: How to set up a VPN on Windows 10