How to enable Windows 7 Hotspot or Virtual WiFi

We talked about Connectify, a software that uses available Hotspot Enabler Tools to create a Windows 7 hotspot. If you do not want to use the software, you can use the command-line technique to create a Wifi hotspot.  Long Zheng came with an update which explains how it works:

After downloading and installing the drivers, assuming your WiFi chipset supports the functionality (which I can verify the 5300 can but 3945 cannot), a new “Wireless Network Connection” with the adapter name “Microsoft Virtual WiFi Miniport” will automatically appear in your network connections.

That explains why I saw this into my list of Network Connection, though in a disconnected state.

create Windows 7 Hotspot

How to enable Windows 7 Hotspot or Virtual WiFi from Command Prompt

Long Zeng also explains how you can enable that without using Connectify, and here is what you need to do. Launch the command prompt with administrator privilege. Type as below, and you would see the output similar to me.

C:\Windows\system32>netsh wlan set hostednetwork mode=allow ssid=aryanwin7vwifi

The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.C:\Windows\system32>netsh wlan start hostednetwork
The hosted network started.

Windows 7 virtual wifi multiple networks

Change the bold marked username and password for yourself. Once complete, it will create Windows 7 Hotspot. You will be able to share your active internet connection to anybody using the hotspot.

The process is much simpler in Windows 10 now.  Windows offers a dedicated toggle switch to create a hotspot as we do in our smartphones. You can configure hotspot names, set up a password, and more using the feature.

Troubleshooting Windows 7 or Windows 10 Wifi Hotspot (Posted by Phil)

If you are having trouble creating Wifi Hotspot in Windows 7 or Windows 10, follow these suggestions.

Open Command Prompt and type netsh wlan stop hostednetwork. Leave this window open

  • Open Device Manager
  • Right-click on your wireless card and select ‘update drivers’
  •  Browse my computer for driver software (vs. Automatically)
  • Select your original wireless network (most likely by the manufacturer vs. MS)
  • Leave this app open to see the next step that the driver has been installed correctly

Go back to Command Prompt and type netsh wlan set hostednetwork mode=allow

Look back at the device manager. The driver should be installed w/o problems correctly in the device manager window. You may close this window

Next, open the Network and Sharing Center and Change Adapter Settings. See ‘Not Connected’ .. Microsoft Virtual Miniport Adapter

Go back to the command prompt again, and type

  • netsh wlan set hostednetwork mode=allow ssid=test101 key=password
  • netsh wlan start hostednetwork

From the Network – Adapter Window, the Microsoft Virtual Miniport Adapter should show up

The only reasons that the adapter might not show up are if the adapter did not support use as a client and an access point simultaneously. It is different from either:

  1. Wireless ad-hoc networking that uses your wireless as an access point only (cutting out your connection to your regular access point or
  2. Microsoft’s original VirtualWifi (notice words are together) driver. It turned the single wireless card into multiple client adapters (as well as this was a direct ‘net’ driver vs. a ‘netsh’ driver).

The only other problem I’ve had was that occasionally when testing different integrations. It throws off the Winsock TCP/IP stack values of some of the temporary TCP variables.

TCP/IP stack repair options for use with Windows Vista or Windows 7 or Windows 10

  • Start, Programs\Accessories and right-click on Command Prompt, select “Run as Administrator” to open a command prompt.
  • Reset WINSOCK entries to installation defaults: netsh Winsock reset catalog
  • Reset IPv4 TCP/IP stack to installation defaults. netsh int ipv4 reset reset.log
  • Reset IPv6 TCP/IP stack to installation defaults. netsh int ipv6 reset reset.log
  • Reboot the computer.

To find out what’s going on with the whole virtual wifi state on a Windows 7 machine:

  • Open a command window, and type netsh wlan show all

After starting the hostednetwork, I have seen at times that the other computer connecting does not always get local and Internet access.

  • Check the Virtual Wireless Adapter IPv4 Properties: (hosting computer)
  • The IP should read 192.168.XYZ.1 and the Mask should be

Few things to note

The name of the adapter for the Microsoft Virtual Miniport Adapter may be “Wireless Network Connection XY.” Where XY usually is ‘2,’ but maybe anything – mine is ‘9’. My initial IP for that access point is where it first started at

The DNS settings have the button “Use the following DNS server” – vs. automatic, and the DNS addresses are blank. In Connectify only [vs. Virtual Router Manager beta], one DNS address listed was

If the DNS of the active (started) hostednetwork is showing these entries (the IP address) as blank or not of the format, then reset them while the adapter is active. Disable and Re-Enable it from Device Manager

Restart the hostednetwork by typing the following on the command prompt:

netsh wlan start hostednetwork

Check to see now on the 2nd computer than connects to your access point. The IPv4 properties should read:

  • IP Address: 192.168.XYZ.XYZ (where the first XYZ matches the same address as on the new access point – in my case it was
  • Mask:
  • DNS Address should read 192.168.XYZ.1 (Where XYZis again the same as the access point above.

Can you use IPv6

Though you can get the connections going without using IPv6, many of the enhancements to both wireless protocols as well as for IP to IP transfer, in general, are best optimized by leveraging the use of the IPv6 channel

Do you use the Wifi Hotspot feature in Windows 7? Let us know in the comments if using the software is easier or this method works for you.


  1. HI~
    I want to know how can I use virtual wifi to connect another wireless network, but not just share your network with others?
    thanks in advance.

  2. thanks for the great tutorial. I have a question though, does your connection have to be re-activated every time you restart? if so is there a way to save it?

  3. Hey

    First of all. I don’t know how to get the damn Microsoft virtual wifi miniport. I am using connectify to make my windows 7 hotspot, but it shows up an error that i require Microsoft virtual wifi miniport.

    Second. I tried your method but nothing seems to be working for mE!
    I downloaded the intel drivers you gave and it doesn’t show any Microsoft virtual wifi in the network connections.

    Tell me what should I do?

  4. I got this error. I am using cmd w/ admin privilage. Please help me what to do next or what have I missed?

    C:\Windows\system32>netsh wlan start hostednetwork
    The hosted network couldn’t be started.
    The group or resource is not in the correct state to perform the requested operation.

    Thank you in advance!

  5. I have the same problem, on my PSP it shows Security : Not Supported
    Why? And how to fix? Any suggestion?

  6. When using Windows 7 what is requuired to screen from my laptop Pc to my TV? Is there a feature that I have to turn on within Windows 7 or what?

    On TV the commerical show it but it doesn’t go into the implementation
    or whether or not their is a requirement the TV must meet.


  7. Great, now how do I make it automatically start the service when the computer boots up?

    netsh wlan start hostednetwork

    is the needed command line but it has to be run as administrator and I don’t know how to add it as a startup item. Do the startup items in the registry run as administrator?

  8. Hello Mr. Mohta,

    I am trying to connet a second Lap to the Virtual WiFi Miniport but I cant not get a valid IP Adress although a DHCP server should be started automatically and assign to the clients IP addresses. Do you know what may be the problem?

    Thanks in advanced

  9. Definitely interesting, but I can confirm that the 5100 doesn’t support this. Bit of a pity, as that would have been a great function.

  10. i have been getting the error message with code 5023 the group or ressource are not in the right state….. and was quite frustrated. solved my troubles now with an easy tweak of adapter settings… check your network settings. you need to see the wifi miniport and if not present look for a new wifi driver that matches your device. then check whether the miniport is active as once you install drivers it’s inactivated by default. that did it for me!
    good luck


Please enter your comment!
Please enter your name here