How to exclude Chromecast connection from VPN in Android
I was able to get it to work as I described but with only one VPN provider: ProtonVPN. If your VPN app suggests split tunneling with exclusion based on IP, it should work as well. However, this solution does not use the package name (the solution you suggested in your question). Hope this continues to help…
The solution is as follows:
- Turn on Chromecast (required for step 2);
- Select the IP address of the Chromecast device. The simplest way I’ve found to do this is to log into the router as administrator (192.168.1.1, don’t forget to disconnect your VPN on the device you are using to access this address ;)). There you will be able to find the list of devices currently connected to the WiFi network. Find out the Chromecast device and its associated IP address (192.168.1. *);
- Go to the settings of your VPN Android app and check the split tunneling feature. You will need to disconnect from the VPN to change this setting.
- Add Chromecast IP Address to Excluded IP Addresses
Now your VPN app will connect directly to your Chromecast when needed. Surprisingly (to me) I didn’t need to add the Google Home app or the app I’m sending to the excluded apps list.
I think if you restart your router (some of them do it more with threads for update purpose), the IP address associated with Chromecast may change and you will need to redo the process. However, turning off the Chromecast (with the power out in the meantime) does not change the IP address of the Chromecast.
If someone knows a way to easily add all local addresses, please share 😉
Idea source: https://www.reddit.com/r/ProtonVPN/comments/9riylh/chromecast_while_on_protonvpn/