How to Use a Computer as a Virtual VPN Router

Warning - If your purpose for setting up a virtual VPN router is watching USA Netflix on devices such as Roku, Chromecast, Apple TV, Smart TV, iPad, Android, etc then make sure you are using a VPN service that supports Netflix on all devices. Many VPN services are "browser only" for Netflix which means that they only work on your computer. If you are using one of these "browser only" services then then creating a virtual VPN router will not enable you to watch US Netflix on other devices.


If you would rather watch a tutorial video you can find it here.


Quick Links


Manual Setup for Windows

Software Setup for Windows

Manaul Setup for Mac



Manual Setup for Windows


These instructions are written for Windows 7 but it will also work on Windows 8 and Windows 10. Some of the steps may be different for different versions of Windows and I will try to point out the differences in the steps below.


Quick Method


Download these 3 files and save them on your computer.


1 - Initial Setup (Use this to automate step 1, only run once unless you want to change the virtual VPN WIFI network name or password)

2 - Start Hosted Network (Use this to turn on the virtual VPN WIFI, required each time you restart your computer)

3 - Stop Hosted Network (Use this to turn off the virtual VPN WIFI, never disable the network adapter!)

To run these files just right click on them and choose Run as administrator as shown below.
run bat file as admin

Step 1 - Create the virtual WIFI adapter (quick method)

Run (as administrator) the Initial Setup file that you downloaded above.


Step 1 - Create the virtual WIFI adapter (manual method)


First, you will need to open an administrative command prompt (aka elevated command prompt). To do this in Windows 7 you can click the start button and type cmd and then right click cmd.exe and choose run as administrator.

Windows 7 start administrative command prompt

Alternatively you can click Start Button --> All Programs --> Accessories --> Right click on Command Prompt and choose Run as administrator.


For Windows 8 and Windows 10 you can right click on the Start Button and then choose Command Prompt (Admin).

Now that you have started an administrative commend prompt type the following command to confirm if your network adapter supports a hosted network.


netsh wlan show drivers

netsh wlan show drivers command

If you see the text Hosted network supported : Yes as shown above then you can continue. If not then you may need to update your network adapter with the latest driver.


Now type the following command to create your virtual WIFI network adapter.


netsh wlan set hostednetwork mode=allow ssid=NETWORKNAME key=PASSWORD


Replace NETWORKNAME and PASSWORD with the network name and password of your choice. In my case I am using the network name netflix and password 88888888.

netsh wlan set hostednetwork mode=allow ssid=netflix key=88888888

Now that the hosted network has been created you need to start it. Don't forget to run the below command in an administrative command prompt every time you restart your computer. Alternatively you can run the Start Hosted Network file available for download above to automate this.


netsh wlan start hostednetwork

netsh wlan start hostednetwork

 

Step 2 - Verify that the new network adapter was created


Open the network adapter settings page by pressing Windows Key + R and then type ncpa.cpl and press enter or click OK.

ncpa.cpl in Windows run dialog

Alternatively you can click Start Button --> Control Panel --> Network and Sharing Center --> Change Adapter Settings (on the left).

You should see a new Microsoft Virtual WIFI Miniport Adapter as shown below. It should be last in the list because it will be the newest adapter created. In my case it is called Wireless Network Connection 3.

new network adapter Microsoft virtual WIFI miniport adapter

Keep this network adapter settings window open because you will need it for step 3.

Step 3 - Check which network adapter your VPN is using


If you have closed the network adapter settings window from step 2 then open it again (Windows Key + R and then type ncpa.cpl).

You need to find out which adapter your VPN is using. In my case, I have several adapters because I have many different VPN services installed on my computer. Some VPNs will install their own custom named adapter for OpenVPN (such as VyprVPN and StrongVPN) and other VPNs will use the generic shared "TAP-Windows Adapter V9" (such as ExpressVPNVPN.ac, and others).

network adapters vpn not connected

Now connect to your VPN to identify which adapter your VPN is using. When you connect to your VPN, the status will change from Disabled or Network cable unplugged to Unidentified network and the red X on the icon will disappear. When I connect to ExpressVPN using OpenVPN, I can see that the adapter used is Local Area Connection 4 as shown below.

Network adapters list with expressvpn connected

Note - If you are using PPTP or L2TP protocols then you will need to set up the connection manually in Windows in order to have a permanent network adapter. Most VPN software will create a PPTP or L2TP adapter when you connect and then destroy it when you disconnect. Check with your VPN provider to get instructions for manual PPTP or L2TP setup in Windows.

Step 4 - Share your VPN adapter with the virtual VPN adapter


Right click on the adapter that your VPN is using which you identified in step 3 (Local Area Connection 4 in my case), choose properties and then click the sharing tab on the top. Enable both of the options by ticking the boxes and choose your newly created network adapter identified in step 2 (Wireless Network Connection 3 in my case). Click OK after you have made the settings.

Share your VPN adapter connection

Step 5 - Connect to your VPN


Connect to your VPN and then your virtual VPN WIFI will be up and running, you can now connect any other devices to the new virtual VPN router WIFI network.


Next time you restart your computer, use the files downloaded above to start and stop the virtual VPN WIFI or do it manually using the commands below.


To start the virtual VPN WIFI, type the following command in an administrative command prompt.


netsh wlan start hostednetwork


To stop the virtual WIFI router you can type the following command.


netsh wlan stop hostednetwork


To disable the adapter completely you can type the following command.


netsh wlan set hostednetwork mode=disallow


Remember that your virtual VPN router will only work while your VPN is connected. If you disconnect your VPN then the virtual WIFI will not have any connection to the internet.

Warning - Always use the above commands or run the files to stop and start the hosted network. Never disable the virtual adapter, this will cause the virtual VPN router to stop working. If you disable the virtual adapter then you will get the below error when you try to start the hosted network, even after restarting your computer.


"The hosted network couldn't be started.

The group or resource is not in the correct state to perform the requested operation."


If this happens, you can re-enable the adapter by following these steps.


1. Open the device manager by pressing Win Key + R and then typing "devmgmt.msc" and press enter.


2. On the top menu, click "View" and then enable the option "Show hidden devices".


3. Find the virtual adapter in the network adapters section and then enable it.

If you prefer a video tutorial then you can watch it below.


Software Setup for Windows


You can use free software to turn your computer into a virtual VPN router instead of setting it up manually. I would recommend using the manual setup because we don't know much about the developers of these software programs (most are Chinese companies and the software could potentially monitor your internet traffic).


If you prefer to watch a video tutorial you can watch it on YouTube. You only need to watch the first few minutes, the remainder of the video is speed testing different VPN services through the hotspot (virtual router).


Step 1 - Download the software


The software I used is called OSToto Hotspot. There are others which I have not used but will include the links below. Please leave your comments below if you have used any of these.


Free Software:


OSToto Hotspot (the software used in my video tutorial)

Virtual Router

Wi-Host

Virtual Router Plus

mHotspot


Paid Software:


Connectify


Step 2 - Connect to your VPN


Make sure that you connect your VPN before enabling the hotspot. If you connect to your VPN after enabling the hotspot then it will not work.


Step 3 - Enable the hotspot


Step 4 - Enjoy VPN on all your wireless devices


Step 5 - Disable the hotspot


Step 6 - Disconnect from your VPN


If you want to disconnect and re-connect to your VPN (changing servers for example) make sure you disable the hotspot in the software first otherwise you may find that the wireless devices connected to the hotspot have no internet connectivity or your computer may have no internet connectivity. If this happens then close everything. Disable the hotspot, disconnect from your VPN, and then start over again.


Just remember this.


To Connect - VPN first, Hotspot second.

To Disconnect - Hotspot first, VPN second.


Manual Setup for Mac


Note - PPTP was removed from the latest version of Mac OS. This should also work using L2TP following the same instructions. L2TP is a more secure protocol anyway so I would recommend trying L2TP first even if you have an older version of Mac OS with PPTP available.


Step 1 - Setup a Manual PPTP VPN connection on your Mac and then connect to it


You must create a manual PPTP connection in the Mac OS system settings. It will not work if you are connecting to PPTP using VPN software. Check the instructions from your VPN provider on how to connect manually with PPTP.


Step 2 - Share your PPTP VPN connection


Open the system preferences menu and then choose sharing. Select Internet Sharing (but don't check the box yet) and then set the following options.


Share your connection from: Choose the PPTP connection you created in step 1.

To computers using: Choose Wi-Fi


Click the Wi-Fi Options button and set the options as follows.


Network name - Choose any network name

Channel - Choose any channel (recommended to choose a different channel than your main router)

Security - Choose any (recommended to choose WPA2 Personal)

Password - Choose any password

Verify - Same as above


Press OK.


In the sharing menu you can now check the box next to Internet Sharing and then click the start button.


To stop internet connection sharing simply un-check the Internet Sharing box.