Web Analytics


Windows Guides Feed

hotspot 500x586 Set Windows 7 as WiFi HotSpot [Quick Tip]

Update: If you are not able to get it working, please post your question in the forum: Get help setting Windows 7 as a wi-fi hotspot in Windows Forums.

Windows 8 hotspot instructions

Windows 7 comes with a new feature for sharing your computers internet connection. Now, you can do it wireless. Well, As long as your system’s wireless network adapter supports Windows 7 “virtual wi-fi” feature, you can do it.

Next you need to check if your network card has the latest driver to support the feature. Intel, Broadcom, Realtek and some other NIC makers provide such drivers.

If the above conditions are met, you are good to read on …

The Commands – Step 1

Feel free to put the following commands into a .bat-file for simpler and faster usage.

  • Open an elevated command prompt (Type “CMD.EXE” in the start menu search bar, then right click the cmd.exe link and select “Run as Administrator”).
  • In the command window, type: netsh wlan set hostednetwork mode=allow ssid=MyNet key=MyPassword keyUsage=persistent
  • Replace “MyNet” with the name you want to use for the wireless network and replace “MyPassword” with your chosen password for accessing it)
  • Press Enter.
  • Now type: netsh wlan start hostednetwork
  • Press Enter.

Step 2 – You need only do this once (usually):

  • Open Control Panel and go to Network and Sharing Center.
  • Click Change Adapter Settings.
  • Right click your Internet connection and select Properties.
  • Click the Sharing tab.
  • Check the box that says “Allow other network users to connect.”
  • Choose your virtual Wi-Fi adapter and click OK.

Now Wi-Fi enabled computers within range should see your new wireless network and others can connect to it if they know the password.

Android Connectivity Problems

Some users report that they loose connectivity after a while. User M3n0 commented that one solution might be to add Static IP to your device. There are many free apps in the Android Market offering this kind of feature. I have not tested this myself as I don’t experience any problems what so ever on my device (yeah, yeah, bragging, I know). But please do, and let us know if it helps you.

If you don’t want this connection to remain permanent, remove the: “keyUsage=persistent” from the first command line.

Updates

#1: If you are not able to get it working, please post your question in the forum: Get help setting Windows 7 as a wi-fi hotspot in Windows Forums.

# 2: Some experience connectivity issues after rebooting the computer or device. This May be solved with a hotfix from Microsoft. Read More here.

# 3:  Edited the origial script, after a sugestion from ScuubZ: added: keyUsage=permanent. Removed due to complaints that it doesn’t work. Try to use: KeyUsage=Persistent.

http://forum.mintywhite.com/viewtopic.php?f=24&t=6674


 Set Windows 7 as WiFi HotSpot [Quick Tip]

About Thomas

Computer geek from the age of 7, which amounts to 30 years of computer experience. From the early days (when every computer company had their own OS) of DOS, Windows 1.0 through Seven...

Free PC tips by email

Search Windows Guides




Comments

  • Josinchu

    thank a lots ชอบจริงๆ

  • Josinchu

    thank a lots

  • Fizzle

    How I undo it??? I can´t delete the wireless Network connection I created. and I always get a bluescreen when I want to start the Microsoft virtual Wifi Miniport adapter….

  • http://twitter.com/Sushubh Sushubh

    this is assuming net is connected through a lan card and wifi is enabled through a wifi card… or this would work with just a single wifi card itself? computer connects through the same wifi card that is used to turn on the hotspot functionality?

  • Kingkhan0007

    its showing unable to connect on another laptop

  • No

    Can you setup WPA/2? or AES/TKIP?

  • Guest

    Is this the same as right-clicking the adapter and setting the equivalent of “Allow network users to access the Internet through this connection” like they had in Windows XP?

  • Borat

    same procedure as creating an adhoc connection, then sharing it. Just made it more complicated

  • http://discoveryourpc.net Angel

    Great Post, Thomas

  • Bobokesiangan

    please help me, why my internet not acces ??..

  • http://twitter.com/ellyRulez Elmer Fernandes

    nice tutorial…. I wanted to know how to do that…. thx!!

  • Tariq Khan

    Do we need to right click on the “LAN Connection”?

  • SRChiP

    Nice Tip.
    I used connectify.me, but i wouldn't install it if i knew i could just do it with command line.

  • Aziz

    non comprant

  • None

    Works like a champ

  • Thomas_mintywhite

    To Undo you would have to Go to Step 5, and unCheck the box that says “Allow other network users to connect.” Then you can Right-Click on the Virtual Wifi Adapter and choose “Disable”.

  • Thomas_mintywhite

    Well, If you have a wi-fi router that anyone in your household can connect to, then you wouldn't need to share the Internet connection in the first place. So this would be usable for those connected to a LAN throught Cable, then using the computer as a wi-fi router.
    That's how I see it anyways. Feel free to correct me on this.

  • Thomas_mintywhite

    Yes It would seem it is.

  • Thomas_mintywhite

    Yes in order to access the Properties

  • Darkmoon721

    not new just ICS wireless

  • Mansoor Alikhani

    I used the above steps and made a wireless connection. Then I connected with my iPhone using the specified password. On iPhone shows that it is connected to the wireless connection but I can't connect to internet on the iPhone using this wireless connection. Do you know why? Is there some adjustment I need to make in iPhone?

  • Thomas_mintywhite

    I'm no iPhone expert. There really shouldn't be any need to change things on the iPhone. One idea that comes to mind, would be to check your firewall (on the computer), see if any warnings come up when you try to connect.

    Try posting this question in the forum.

  • Mansoor Alikhani

    My firewall did actually give a warning. I confirmed the new network was a trusted one. I even disabled the firewall but it didn't help.
    I'm using Win7 Ultimate on Macbook.

  • Pingback: Hot Spot – How To | KKCR Computer Connection

  • Brianmbnh

    Thank you sooooo much!!!! I have been looking for a convenient solution for my other internet device as I don’t have wifi access and now I can use internet with it :) many thanks

    • Anonymous

      you’re welcome :-)

  • Bobby

    is there a way to do this but make a hidden ssid?

  • Ramzi

    Hi all, thanx Thomas this is easy to do this way but i don’t have a cable or wired internet i have a USB or Internet Stick to connect to the internet… I tried to connect other devices but it says Unable to obtain IP address… any thoughts… On my iPhone i can connect to wifi but no internet on my Blackberry i can’t connect cause it says can’t obtain IP… thanks

  • Ramzi

    Whenever i try to connect any device it can’t get an IP address from the connection… any help pls. thanks

    • http://www.mintywhite.com Thomas

      I suggest you set up a post in our Forum.
      A lot more people will be able to help out there.

      A tip might be to check the settings in your firewall to see if it is blocking connections.

  • Deaken

    OMG you are a genious, thankyou so very very much, i have spent countless hours trying to figure this out, forum after forum and that was so simple for me to understand and had it working within 5 minutes, thankyou so very much

    • http://www.mintywhite.com Thomas

      I am glad we could be of service to you.
      Thank you for your comment.

      • Mykesze

        hi sir,
        i had followed all instruction step by step but when i tried to command netsh wlan start hostednetwork it connects and a few seconds it disconnects?

      • http://www.mintywhite.com Thomas

          [b]To get it working there are two conditions that has to be met:[/b]
        1. wireless network adapter supports Windows 7 “virtual wi-fi” feature.
        2. Check if your network card has the latest driver to support the feature.

        Try posting this question in our new sticky post in the Forums(http://forum.mintywhite.com/viewtopic.php?f=24&t=6674)
         

      • Mykesze

        sir, is this applicable to windows 7 x64?

  • Anonymous

    I spent way too much time trying to find a solution to this, downloaded like 5 crappy programs and popped at least 5 Advil. Then I found your article – it was a shining light at the end of the tunnel. I had to allow sharing of my current connection before starting my virtual wifi miniport because the windows network panel refused to open (ie crashed) but other than that this was so insanity helpful. Thank you!

    • http://www.mintywhite.com Thomas

      thank you.
      glad to be of help

  • Sammyhendra

    I’ve been follow ur instructions step by step, but unfortunately it’s not working, its said “The hosted network couldn’t be started. The group or resources si not in the correct state to perform the requested operation”. What should I do ? what’s wrong with my win 7 notebook ?

    Regards,
    Sammy

  • Visitor1

    Thanks for the post! Tried to use Conetify with my broadband card with no luck what so ever. It actually shut my card down. Had to do a system restore just to connect back again. Used your post and everything worked great with the broadband card.

    One question though…..How do I get it to stay on all the time? It seems that every time I change to a different network for internet access I lose the ability to use my hot-spot without having to go back into the CMD prompt to do the process all over again.

    If there is a way to make it stay on I would love to know how the settings for that. Thanks

    • http://www.mintywhite.com Thomas

      I’m not really sure. There really shouldn’t be a reason why it shouldn’t stay online. Unless Windows store those network settings to the specific network (or host) IDs.

      The “quick and dirty” solution would be to create a batch-file containing the netsh commands, and run it every time you switch network providers.

  • Rein_ran

    Nice guide i can set hotspot without any software

  • shyam

    i’ve been following ur instructions step by step, but unfortunately it’s not working, its said “The hosted network couldn’t be started. The group or resources si not in the correct state to perform the requested operation”. What should I do ?

  • http://profiles.google.com/intomixsound Ciprian Constantin

    Thx a lot. It also worked for me.

  • Visitor2

    i switched off my laptop and then switched it on later and started wifi on my mobile phone but now it does not find my wifi network on this laptop

    please help………….

    • http://www.mintywhite.com Thomas

      Have you checked that the WIFI is running or the WIFI switch is turned on ?
      Please post detailed question in the Forum (http://forum.mintywhite.com/) if you are not able to solve this.

  • http://profiles.google.com/jaroslav.bazylak Jaroslav Bazylak

    can I remove such hosted network?

  • http://profiles.google.com/jaroslav.bazylak Jaroslav Bazylak

    how can i remove this hosted network?

  • bobo

    you are AMAZING!!!!!! thank you :)

  • bobo

    my ipad works fine with it yesterday when using safari. now it doesnt. it says it is not connected to the internet. but it is connected to the network. help anyone?

  • Sukhish Puri

    As soon as i press enter on the first command, i get blue screen of death, i’ve been facing the same issue with “connectify” i’d really appreciate if someone can help me with it!!! Thanks…

  • Pramos

    gewelding oplossing Thx 

  • Arthur Lee

     Hi i have win7 home premium. I am able to start netsh with no problem. My laptop network connection is thru a mobile broadband sim card in a usb modem.  I think you are telling me to click this network connection in network sharing, and share this connection with other computers.  This connection is listed as a ‘public’ network.  It allows me to share it with a ‘home’ network which is the virtual wifi.  My mobile phone can connect to the new virtual wifi with no problem, but windows says the virtual wifi has no internet access.  Is it because the public-home type network?   thanks.

  • Arthur Lee

     me again,  i changed the digi network to home, so both virtual and my internet connection were home, that didn’t make any difference, but it does sometimes disconnect the mobile connection immed, and i have to redial.  I am able to connect via ftp.  I have androidftp on my mobile. i can also use google maps, and they update fine, so it seems only browsing is not possible.  How can I enable “internet access” for the virtual wifi?   
    p.s. Thank you very much for the good information.

  • http://www.techlisten.com Mahesh

    Do all the WiFi Routers support “Virtual WiFi” feature of Windows 7?

    Does this one support it? http://cgi.ebay.in/Edimax-BR-6204WLG-WIFI-Wireless-Router-54Mbps-3-years-/160597097868?pt=LH_DefaultDomain_203&hash=item2564553d8c

    • http://www.mintywhite.com Thomas

      I’m afraid you have to get hold of the manual and check it out. Most new routers should support the feature.

  • http://www.mintywhite.com Thomas

    Connectivity problems may be caused by problems with your virtual Wi-Fi Driver. Read more about how to fix it in this article: http://www.mintywhite.com/windows-7/solved-virtual-wifi-applications-work-restart/

  • isalm galal

    Thanks Very much Works Like a charm
    thanks again

  • Richard

    I’ve got everything working up to a point. I’m trying to connect with my android phone (Nexus One) and as it connects it always gets stuck saying “Obtaining IP address”… Never successfully connects. 

    • Rompeskjegg

      Same here. Galaxy S

      • http://www.mintywhite.com Thomas

        @5d711a44f763c7565c28bfd248de0018:disqus@c391b5efe789dbf5af93eac90dec12e8:disqus Must be a setting on your android phone I suspect. Maybe you’re using the wrong security protocol or something.
        My HTC DIamond (yeah its the really old one) connects perfectly, when I use the correct encryption.

    • Rompeskjegg

      Same here. Galaxy S

  • Timemasterbeall

    Connectify stalls after a few hours of use no matter what computer or wifi adapter I use. My experience with connectify has been a nightmare! I give that program a 0 out of 10 because that is how often it worked for me. If there is anyone who knows how to create an actual long term working repeater with 2 wifi adapters, let me know. I have searched to the ends of the Internet to find solutions and am now turning to done Linux distros. But I highly doubt that will be a fun walk!

  • Shariq Iqbal

    not in a correct state to start it..y this is shown?


Computer tips in your inbox
Sign up for the Windows Guides newsletter to get PC tips and access to free Windows books (More details)

Enter your email address:
 

Popular Guides

See which sites have been visited on your PC (even if private browsing mode is used)

Create a Windows 7 System Repair Disc

Best Free Anti-malware

Hibernate vs. Sleep vs. Shut-Down

i3, i5, and i7; Dual, Quad, Hexa Core Processors. How to they Differ?

Intel's Ivy Bridge Processor: new Features

Submit Your Tip
Submit your computer tip to us; receive full credit for all published tips

Windows Guides on Facebook