Why I can't connect to local wp sites when using vpn

Hi, friends, I’m from China, and it’s my first time to use local for wordpress and I came across an issue.

I wonder why I can’t connect to my websites when I am using VPN,

As soon as I turn off the vpn, the site shows.

this is really important to me cuz I can’t use Youtube when I was doing projects on local sites within China.

Hi @Meizi

It depends upon the quality of the VPN application and its features, that you are using.

For Example: The issue you describe does not happen when using IPVanish (a VPN application), because it has built in rules for local network requests to not go through the VPN (as default behaviour). So, with IPVanish, the default user experience is LocalWP WordPress websites just work and all other network traffic is routed out through the connected VPN endpoint.

Unfortunately, it seems you are not experiencing this default behaviour; so the next step would be to check out your VPN configuration for a feature called “Split Tunneling”.

This is a way to have most of your network traffic get routed out through your active VPN (like visit YoutTube) and anything you put in the ‘Split Tunneling’ configuration should not use the VPN connection and just rely on your personal computer to do things like DNS resolution and try website connections for private subnets. This is where you would then be able to access the LocalWP websites by adding them into the ‘Split Tunneling’ configuration.

Step 1 - Determine the local domain host name used for the specific LocalWP website. This screen shot is an example for one LocalWP website called blanky-001.local.

Step 2 - Save that local domain host name in the VPN ‘Split Tunneling’ configuration.

Step 3 - Follow any instructions like close/open the web browser to start a new network session.

Disclaimer: The above is a guess and hopefully enough to get you the user experience you are looking for.

1 Like