The VPN (Virtual Private Network) technically places your computer on a different network, and this interferes with the local-only nature of screen mirroring connections. To use AirParrot 3 with a VPN, you will need to specify that traffic between your computer and receiver is configured to use the local communication path only. This configuration will allow the screen mirroring traffic to remain on the local network, while all other traffic is routed through your VPN. For most users with software VPN clients, we will do this by adding a routing table entry that specifies traffic to our receiver will be local only.
- Open a command-line interface and use the command: route add
- The format is as follows: route add your.receiver.network MASK your.subnet.mask your.default.gateway
- The only drawback to this method is that after you reboot your static route will automatically disappear.
To make it stay, we need to make it persistent with the -p modifier. So just add a -p to the end of the route and it’ll be permanent. In the example of connecting to a receiver that is on the 10.122.0.0 network with a default gateway of 10.122.0.1, the command would look like this: route add 10.122.0.0 MASK 255.255.0.0 10.122.0.1 -p
Once this is done, traffic destined for the 10.122.0.0 network, where our receiver resides, will automatically use the 10.122.0.1 default gateway, while all other traffic will be routed through the VPN client.