You can turn a Windows 7 laptop into a WiFi hotspot with two Command Prompt commands — no extra software needed. This guide gives you the exact commands, shows you how to check your WiFi adapter supports it, walks through sharing your internet connection, and fixes the errors people actually hit.
One honest note first: Microsoft ended support for Windows 7 on January 14, 2020. The steps below still work on Windows 7 machines, but an unsupported OS no longer gets security updates — don’t use one for anything sensitive. If you’re on Windows 10 or 11, skip to the built-in Mobile Hotspot section instead; it’s far easier there.
What You’ll Need
- A Windows 7 PC with a working WiFi adapter (built-in or USB).
- Administrator access — every command here must run in an elevated Command Prompt.
- An active internet connection to share (wired Ethernet, USB modem, or an existing WiFi connection).
- Your WiFi switched on. On many laptops there’s a physical switch or an Fn-key toggle — make sure it’s on before you start.
Step 1: Open Command Prompt as Administrator
Click Start, type cmd into the search box, right-click cmd.exe in the results, and choose Run as administrator. Click Yes on the User Account Control prompt. The window title should say “Administrator: Command Prompt” — if it doesn’t, the commands below will fail with “access denied.”
Step 2: Check That Your Adapter Supports a Hosted Network
Not every WiFi adapter can broadcast a hotspot. Check yours first:
netsh wlan show drivers
Look through the output for this line:
Hosted network supported : Yes
- Yes — you’re good. Move to Step 3.
- No — your adapter or its driver doesn’t support hosted networks. Open Device Manager, expand Network adapters, and update your WiFi driver from the manufacturer’s website. If it still says No, you’ll need a different (usually USB) WiFi adapter that supports it.
Step 3: Create the Hosted Network
Type this command, replacing the network name and password with your own:
netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=MyPassword123
Rules for the values:
- ssid is the WiFi name other devices will see. Keep it simple — letters and numbers, no spaces is safest.
- key is the password and must be at least 8 characters. The hotspot uses WPA2-PSK encryption, so pick something strong.
- You only need to run this command once — Windows remembers the settings.
If it worked, you’ll see:
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.
Step 4: Start the Hotspot
netsh wlan start hostednetwork
You should see:
The hosted network started.
Your PC is now broadcasting the network name you chose — but connected devices won’t have internet yet. That needs Step 5.
Step 5: Share Your Internet Connection
The hotspot is broadcasting, but it’s an empty network until you share your PC’s internet with it. This is the step most guides rush, and it’s where most setups fail.
- Press Windows key + R, type
ncpa.cpl, and press Enter. This opens Network Connections directly. - Find the connection that has your working internet — usually “Local Area Connection” (Ethernet) or your main “Wireless Network Connection.” You’ll also see a new one, something like “Wireless Network Connection 2,” labeled Microsoft Virtual WiFi Miniport Adapter — that’s your new hotspot. Note its name.
- Right-click the connection with working internet (not the new hotspot one) and choose Properties.
- Go to the Sharing tab.
- Check “Allow other network users to connect through this computer’s Internet connection.”
- In the “Home networking connection” dropdown, select your new hotspot connection (the “Wireless Network Connection 2” / Virtual WiFi Miniport one from step 2).
- Click OK.
That’s it — your hotspot now shares the PC’s internet.
Step 6: Connect a Device
On your phone or tablet, open WiFi settings. You should see the network name you set in Step 3. Connect and enter the password. To confirm who’s connected, run:
netsh wlan show hostednetwork
It lists the hotspot’s status, channel, and the number of connected clients.
How to Stop (and Remove) the Hotspot
To stop broadcasting while keeping your settings for next time:
netsh wlan stop hostednetwork
To start it again later, just repeat Step 4 (netsh wlan start hostednetwork) — no need to re-run the setup command.
To remove the hosted network entirely:
netsh wlan set hostednetwork mode=disallow
One-Click Start/Stop Shortcuts (Optional)
If you use the hotspot often, save yourself the typing:
- Right-click the desktop → New → Shortcut.
- For a start shortcut, enter
C:\Windows\System32\netsh.exe wlan start hostednetworkand name it “Start Hotspot.” - Repeat with
C:\Windows\System32\netsh.exe wlan stop hostednetworkand name it “Stop Hotspot.” - Right-click each shortcut → Properties → Advanced → check “Run as administrator” — without this, they’ll fail silently.
Troubleshooting: Fixes for the Errors You’ll Actually See
“The hosted network couldn’t be started.”
The most common error. Check three things in order: (1) your physical WiFi switch / Fn-key toggle is ON, (2) the wireless adapter is enabled in Network Connections (ncpa.cpl — right-click it and choose Enable if it says Disabled), (3) your driver is up to date.
“Hosted network supported: No”
Your adapter or driver can’t do hosted networks. Update the driver from the manufacturer’s site first. Some older or budget adapters never will — a cheap USB WiFi adapter that lists hosted-network/AP support is the practical fix.
“The group or resource is not in the correct state to perform the requested operation.”
The virtual adapter is disabled. Open Device Manager → Network adapters, right-click Microsoft Hosted Network Virtual Adapter, and choose Enable. Then try netsh wlan start hostednetwork again.
Devices connect to the hotspot but get no internet.
You skipped or misconfigured Step 5. Re-open ncpa.cpl, and make sure Internet Connection Sharing is enabled on the adapter that has working internet — not on the hotspot adapter itself — and that the “Home networking connection” dropdown points at the hotspot connection.
“The user key passphrase… must be at least 8 characters” / clients reject the password.
Your key was shorter than 8 characters. Re-run the Step 3 command with a longer password.
Commands fail or say access is denied.
You’re not in an elevated prompt. Close Command Prompt and re-open it via Start → right-click cmd.exe → Run as administrator.
On Windows 10 or 11? Do This Instead
Windows 10 and 11 have a built-in hotspot feature, so you don’t need Command Prompt at all:
- Open Settings → Network & Internet → Mobile hotspot.
- Under “Share my internet connection from,” pick your connection (WiFi or Ethernet).
- Click Edit to set your network name, password, and band.
- Toggle Mobile hotspot on.
That’s the whole process — name, password, one switch.
Frequently Asked Questions
Does this still work in 2026?
Yes, on Windows 7. The netsh wlan hostednetwork commands are part of Windows 7 itself and Microsoft never removed them. Just remember the OS itself is unsupported, so treat it as a legacy-machine trick, not a daily driver.
Is the hotspot secure?
It uses WPA2-PSK encryption with the password you set — far better than an open network. Still, use a strong, unique password and don’t share sensitive data over a Windows 7 machine.
How many devices can connect?
The hosted network supports up to 100 clients in theory, but in practice your adapter and internet bandwidth are the real limits. A handful of phones and laptops is the comfortable zone.
Why not just use my phone’s hotspot?
Sometimes the phone isn’t the device with the connection — a laptop on hotel Ethernet or a USB modem is the classic case. This method shares whatever connection the PC has.
Conclusion
Two commands create the hotspot, one settings change shares your internet, and that’s genuinely the whole job: set hostednetwork once, start hostednetwork whenever you need it, and Internet Connection Sharing pointed at the right adapter. The failures almost always come down to the same three things — not running as administrator, WiFi switched off, or sharing enabled on the wrong connection — so if something breaks, re-check those before anything else.
Updated: October 2026 — fully rewritten and verified.
Vincent Cruz is the founder and editor of Durofy, where he covers business, technology, and practical consumer guides.








43 Comments
hi uttej,
i m facing no internet access on hot spot which we created nd also in my networks sharing property it will not show the name of created hot spot what is problem i couldn’t identify
i m using a local network name MG INTERNET
please help
Thank Mr,I wish you can through your life with many success
thanks for tutorial work on my laptop, this is very helpful thank you very much I hope god bless you
Pingback: sharing wired internet in laptop with samsung tablet
Brother, already i have done the all setting, now did not connect the wifi in my mobile which written as “authenticating problem”
All the process is correct but in “STEP 4”
We have to do in the properties of “Local Area Connection” but not in the properties of “Wireless Network Connection”
i have manage everything it is good but when i create shortcut the file is not working
Hi! I did everything and managed to connect my phone to my laptop but there is no internet access. You mentioned that I have to share the internet from the local connection to the wifi through the properties then ‘sharing’. But when I click the properties, the only tab I see is ‘networking’, no sharing tab like in the photo. Please help! My laptop’s using a Windows 7 Starter, is it by any chance the reason why there is no sharing tab, because it’s just a Starter? Thanks a lot!
I m facing no network access porblem in host network
Only your instructions worked, before searched all around and finally “show driver command ” worked to setup the host network and rest all was success , but the seconds after it gets connected , a blue error screen pop ups and system gets restarted. please help cant understand whats wrong.
secondly the short keys doesn’t work , suggest something helpful
Hi
Is there a way to change the password. I mean the key
Hi,,,I’ve set up everything correctly and I have even connect my laptop with my cell but the wifi is too slow on my cell,Is there any other way to speed up.
with regards
JOEL
Many many thanks for this i had already tried this many more time within last 4 moths but i was’t get success to share my tikona internet connection with win 7 hotspot sharing, but now you setting just click my mind and i added manually ip setting into my android mobile for your hotspot sharing process and final from last four month first time ever I run my internet connection with wifi on my mobile .
AGAIN MANY MANY THANKS MR. Uttej Venkata Sastry
Sir, Where to post the screen shot?
in my newly created network showing ……. in Acces type : not acces internet……… my laptop and my mobile are conected ???? plz help me
Sir,
I cannot mention my connection, insted of my connection its mention another connection and can’t change it. and can’t connect my android 2.3.6 phone to this connection, “Disabled, secured with WPA/WPA2 PSK.
Hello Sam,
I can understand that you are facing some problem while connecting but please be specific. if possible take a screen shot of the issue and post so that I can help you easily.
By the way, did you get the message saying secured with WPA/WPa2? that’s means you have given some password while creating the connection, please make sure what you gave at that time. Further queries, please do comment.
Thank you.
Hi this is a nice post loved it.But i have a samsung smart TV when i connect wirelessly to my hotspot it says, connected to wireless network but unable to connect to internet??What shoud i do??Should i get a router?
Hello Chandra,
Sorry for the late reply. PLease try again by restarting the connection. Hope it will work.
Thanks Uttej. Very well explained step by step procedure. It helped me.
Thanks a lot :)
hey all,my hosted network is not supported , what did it mean,by dowloading the required drivers from my vendor website…? how ?
yes, you need to download drivers for your Wifi or Wlan whatever. Please make sure your laptop has wifi compatibility and drivers installed in it.
If you use HP, then google hp wifi drivers, and you will be given many links to choose. Select appropriate vendor website and download the drivers and install it. After that, please do follow my instructions step by step. If you face any problem, please do ping here.
Thanks you.
Hi
The wi-fi is broad casting. But I am not able to browse from my Asus tablet using this connection. Can you give any suggestions?
Hello Vikram,
I guess there might be a problem with your connection. Once restart the wifi connection and give exact sharing option to your newly created connection. It will work
:)
Thank you.
Hello uttej
i used ssh to conect internet
is there any way to make my laptop become hotspot?
because i was use conectify and other and it didn’t work..
(sorry for my bad english)
hello uttej,
I am able to create wifi sigmals but my devices could not connect to it.
They are able to recieve the signals but could not connect to them…
Can u help me…
Hello Sharad,
Sure I can help you. If you can create the connection successfully and couldn’t browse the net means, you didn’t give allow your newly created connection to share your internet. For example, if you use Tikona internet, and lets say LocalInternet is your newly created connection, please share your tikona connection to LocalInternet in this properties. Please once read this step which I have mentioned in the article. You will get this time for sure :)
Thank you!!
thanks for the amazing post
i am using a reliance dongle , same like u using idea as shown above
i am not getting the connected to internet in my private network even after turning on the sharing ,
Can u help me out on this ??
Hello Akshith,
Its all because of the connection, once restart the network and give sharing option again. Hope it will work :)
Good job Uttej, its really nice and different kinda technology. I was also having confusion in adding clients but after reading your replies to other readers, am now satisfied. I will try to use this technology.
Thanks for sharing, it is really helpful and amazing tech.
Thanks :)
hello, I installed AVG on my PC windows 7 64 bit, and I want to share my internet connection with my smartphone turning the PC into a hotspot and then share the connection with my smartphone, but unfortunately AVG blocks access to my pc . Before installing AVG my smartphone saw the connection that I created, it connected and I could surf the internet, but not anymore, how can I fix this?
Hi Stefano,
Please check is there any option which allows Internet connection from your AVG, if not, trying allowing the connection from your Firewall. ( Allow programs in Firewall option in windows ). Still you find difficulty, please remove AVG and use Quick heal or some other :) :D
Thanks :)
hello how can I add maximum number of clients from 2 to 10 bu using command line??
Please answer me…
Uttej Venkata Sastry, what is the command in DOS so I add the Maximum number of clients (Max Guests, maximum peers)?
please show me the command
thanks, and this is a really useful post.
Hey Guihgo,
Thanks for reading my post and please understand here we are configuring a virtual hosted network and you can allow any number of users or clients to your network. But here you need not do anything other than monitoring. Just allow people to use your network. Why you are complicating the issue of adding people manually without their need using DOS?
Just see it simple yar.
Enjoy the technology. Hope you are doing good further.
Thank you. :)
hi i was doin f9 uptill opening control panel.there my established connection as ur tutorial taught came up but after then wen i right click on change adapter settings n do as u say my connection does not show up internet infront of type.
i just wanted to try this method.i do have a sftware instaleed with which i acess wifi on my laptop.can this be a cause fr the problem if not please tell me the sol.
Hie Udit,
I didn’t understand what you are saying clearly but if i’m right on understanding what you are asking me, then the answer is that you didn’t configure the virtual hosted network correctly. Please read the procedure and do it once again. :)
If you find any doubts, please notify me.
Thank you !!
Thank you! It is a really useful post!
hello how can I add maximum number of clients from 2 to 10 bu using command line??
Please answer me…
Hello Aslam,
Thanks for reading my article. Its nice to see people like you using wifi connection using command prompt but in order to add clients to your router or hotspot, it is advised to connect via Mobile devices, Laptops or any kind of mobility devices.
Example : Start the wifi connection as a hotspot and let people to use your connection as I have mentioned in the post.
Next, from your mobile devices search the wifi connections and connect from it.
Note : you can connect as many as you want but it will reduce the bandwidth of your ‘s
Enjoy :)
Aslam, i have already mentioned you the same below.. Please check it out :)
Thank you.