Share Private Internet Access VPN With All Your Wireless Devices
If you have got Windows 7/8 you can easily share your Private Internet Access VPN connection with all your wireless devices (iPhones, iPads, Androids, other PCs etc…) using virtual WiFi hotspot support in Windows. You don’t need to run Private Internet Access on your router. In fact you don’t need a router at all for VPN.
First, install PIA's client on your Windows PC. Then go to Start Menu and type cmd. Windows will find cmd.exe console program. Right click on it and choose “Run as administrator“:
Type the following commands into Windows console:
netsh wlan set hostednetwork mode=allow ssid=Test key=password
netsh wlan start hostednetwork
I have used “Test” as new hotspot SSID, and password “password”. You should change these.
If everything went OK, the last line will show “The hosted network started”. In case you receive this:
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
this means that your WiFi driver is outdated. Make sure your wifi adapter is not disabled in the device manager, because if it is then you will need to enable it before you can carry on. The best is to use automatic update for the driver so Windows will try to find it on Windows Update. If Windows is not able to find newer driver, try to find a newer driver on manufacturer’s web site (Atheros, Intel, Realtek, etc…).
You can easily test if your WiFi card is supported using command
netsh wlan show drivers
If you see line:
Hosted network supported : Yes
it means your WiFi card will work.
When Hosted Networking is started successfully, we need to tell Windows to share PIA's VPN connection. To do that, click on WiFi signal bars icon in your system tray (near the clock). It will show something similar to:
Click on “Open Network and Sharing Center” and then click on Change adapter settings:
If you see just a list view, the best is to switch your view to Tiles or Details. This way you will be able to identify network adapters easier:
We are looking for 'Local Area Connection 2' adapter. It will probably not have that name on your computer, but you will recognize it by “TAP-Win32 Adapter V9″. Right click on 'Local Area Connection 2' adapter and select Properties:
Click on Sharing tab, check box “Allow other network users to connect through this computer’s Internet connection”, from the drop down box select virtual WiFi adapter – I have renamed it to Virtual AP, thus name on your computer will be different. However – you can easily find it on the previous screenshot – it has description “Microsoft Virtual WiFi Miniport Adapter”. Once finished, click on OK button.
The last step is to connect to Private Internet Access's VPN. Once you are connected, 'Local Area Connection 2' adapter will change its state as well.
Now connect to network “Test” using password “password” from your wireless phones. All your devices connected to network “Test” will use PIA's VPN.
Unfortunately, if you restart your computer or put it into sleep, Windows will disable virtual Access Point. You will need to run just this command again:
netsh wlan start hostednetwork
There are a few programs which can automate all this and help you manage virtual hosted network much easier. Two such free program can be found here:
The list of supported WiFi cards: http://virtualrouter.codeplex.com/wikipage?title=Supported Devices
Finally, If you do want to stop the Virtual Wifi miniport adapter its so easy all you do is go to the command prompt as a admin and type this "netsh wlan stop hostednetwork" with no quotes. than type this "netsh wlan set hostednetwork mode=disallow".