Turn Windows Into A WiFi Hotspot & Share Your Internet Connection

Ads by Google

You’ve got an Internet connection via a network cable, but you want to have your other computers and devices get Internet connections wirelessly. Can you do this? Can you make your Windows computer run like a WiFi router?

The short answer is a qualified, ‘Yes.’ The key component in this process is making sure that your Windows computer has a wireless network card. If you have that installed properly, then you can turn your Windows computer into a WiFi hotspot and share your Internet connection.

How Does This All Work?

Most WiFi cards for PCs can be used to share wired Internet connections, wirelessly. Mind you, it does take some software, or special configuring, to use that capability. Essentially, the software or configuration is what will act as the ‘virtual router’ to enable your computer to share that Internet connection. We’re going to look at a few different ways that you can do this on a Windows computer, as well as the positives and negatives of each method.

virtual-wifi

Ad-Hoc Wireless Connection via Windows Menus

Ad-hoc is a Latin phrase meaning ‘for this’. It is meant to describe something that is set up for this particular purpose only. Often it is something of a temporary nature with minimal setup, planning, or support. There are two ways to set up an ad-hoc wireless network in Windows: one is through the graphical menus, and the other is through the command line interface. Let’s take a look at the graphical menus first.

Ads by Google

Click on your Start Menu, then Control Panel, then Network and Sharing Center. You’ll see the following window:
network-and-sharing-center
Now click on  Set up a new connection or network. When the new window opens, scroll down until you see Set up a wireless ad hoc (computer-to-computer) network. Highlight that option by clicking once on it, then click the Next button.

set-up-wireless-adhoc

You’ll now see a window that explains what an ad-hoc wireless network is and it tells you a few things about it. The most important thing to note is that any devices using the ad-hoc wireless network must be within 30 feet of each other, in any direction. Consider that as a maximum upper limit, as so many other things can affect the range of a wireless signal. Expect maybe half of that. You can optimize the range by following a few tips on what we’ve come to call wireless feng shui.

The second most important thing to note is that if you create an ad-hoc wireless connection, any wireless connection you have to a device right now will be dropped. So, if you think you can connect wirelessly to one network and share that network wirelessly with others – you can’t. It’s one or the other. Click the Next  button to move on to the next window.

This window is where you set the name of your network and what kind of security it has on it. It is recommended to use the WPA2-Personal choice for Security type. This gives you the best security you can get with an ad-hoc connection like this. Use a password that you don’t mind giving to other people. Don’t recycle a password you use for other things like Facebook or banking. You’ll soon regret that, if you do. If you intend to set up an ad-hoc wireless network again in the future, you can check the box that reads Save this network and click the Next button.

name-network-and-security
Congratulations! You’ve just created an ad-hoc wireless network! Share it with your friends and family as you see fit.

The problems with this kind of connection aren’t many, but it isn’t the most universal solution. People with Windows 7 or earlier trying to connect with non-Windows devices have had some difficulties and have had to investigate deeply to find out how to configure their non-Windows devices in order to connect.

Sometimes, the issue is that the device isn’t compatible with the type of security or encryption that your ad-hoc wireless network is set up to use. Sometimes, it’s a matter of the firewall on the host computer blocking the devices from connecting. Sometimes, you can solve the problem by assigning static IP addresses to your connecting devices. Sometimes, it doesn’t seem like there’s a good reason at all why it won’t work.

From the research I’ve done, it appears that Windows 8 and newer have less issues like this. We have previously explained what you can try if you are having issues with Windows 8 and WiFi.

The Verdict On This Method

The positive is that this is an easy connection to set up and quick to disable. This method is best suited for allowing short and temporary connection of devices you know that will work.

Ad-Hoc Wireless Connection via Command Line or Batch File

You can also create and disable an ad-hoc wireless network using the command line. When you can do something through the command line in Windows, you can also write a batch file to do the same thing. This is especially useful for tasks that you would repeatedly perform.

To do this via the command line, you need to open the Command Prompt. The quickest way to do that is to click on the Start Menu then type cmd in the Search programs and files field. When it finds the Command Prompt program, right click on it and select Run as Administrator, unless you are the administrator.

First, you must initialize the hosted network mode. This is the command: netsh wlan set hostednetwork mode=allow ssid=YourSSID key=YourPassword keyusage=persistent where you change YourSSID to whatever you want to name the network, and YourPassword to whatever password you want on the network.

Second, you must turn the network on: netsh wlan start hostednetwork

netsh-command-prompt

Third, when you want to close out the network, use the command: netsh wlan stop hostednetwork

Pretty simple. If you want to create a batch file for this, open up Notepad and copy and paste the following into it. Again, change YourSSID to whatever you want to name the network, and YourPassword to whatever password you want on the network.

@echo off
CLS
:MENU
ECHO.
ECHO…………………………………………
ECHO.
ECHO Press 1, 2, or 3 to select your task, or 4 to Exit.
ECHO…………………………………………
ECHO.
ECHO 1 – Set Wifi Sharing Attributes
ECHO 2 – Start WiFi Sharing
ECHO 3 – Stop WiFi Sharing
ECHO 4 – Exit
ECHO.
SET /P M=Type 1, 2, 3, or 4, then press ENTER:
IF %M%==1 GOTO SET
IF %M%==2 GOTO START
IF %M%==3 GOTO STOP
IF %M%==4 GOTO EOF
:SET
netsh wlan set hostednetwork mode=allow ssid=YourSSID key=YourPassword keyusage=persistent
GOTO MENU
:START
netsh wlan start hostednetwork
GOTO MENU
:STOP
netsh wlan stop hostednetwork
GOTO MENU

Save the file to your desktop as something like AdHocNetwork.bat. Make sure it doesn’t have the .txt extension. Now, when you want to create an ad-hoc network, all you have to do is run the batch file (as Administrator) and follow the menu prompts. It’ll look like this:

ad-hoc-network-batch-file

The Verdict On This Method

The same pros and cons apply to this as to the other ad-hoc network you created through the Windows method. It’s  great for setting up a short and temporary connection of devices, but automated and quicker to set up.

The Software Approach

There are plenty of software applications that make setting up your Windows PC as a virtual WiFi router as easy as can be. Most of them take care of the various issues that you might encounter with the more traditional ad-hoc networks. Virtual WiFi Router (free, our review), VirtualRouter (free, our review), WiFi Hotspot Creator (free), Thinix ($13 USD) and Connectify Hot Spot PRO are just a few of the applications available that can do this. Connectify HotSpot Pro has consistently been the best virtual router software that I have used, so I’ll share a bit more about it with you here.

Connectify Hot Spot PRO – $40 USD

In my experience, Connectify is the best application to use for this, as it is super simple to set up, runs flawlessly, and I’ve never had an issue with any device being able to connect to it, as long as it was in range. I’ve connected Android phones and tablets, iPads and iPhones, BlackBerry Playbooks and phones, and of course, Windows PCs. The most I’ve had connected at one time has been five devices and it performed wonderfully, with no noticeable lag on my PC or the other devices.

Sure, Connectify costs a few bucks, but the aggravation it saves easily pays for that. The software also aids in sharing of files between devices connected to it and access to the Local Area Network. I’d go as far as to say that Microsoft should consider acquiring Connectify and making this software part of Windows.

The image on the left shows just how easy it is to configure, and the image on the right shows you how it keeps track of who is connected, and has previously connected.

connectify-hotspot-pro

Some of you might be thinking, “Why would I buy Connectify to do this, when I could just buy a wireless router?” That’s a valid question. If your PC is typically going to be stationary, then getting a WiFi router makes a lot of sense. However, if you have the need to be able to set up a WiFi router in different places, if you travel for work, then software is a lot easier to lug around.

The Verdict On This Method

Connectify is ideal for people who might be sales people, corporate trainers, lecturers, and more.

Summing It Up

Now you know that you CAN turn your Windows PC or laptop into a virtual WiFi router, and you have a few different ways to do so. Pick the one that is right for your needs, try it out, test it, and learn more about what you can do with it.

What other things will a virtual WiFi router allow you to do? Play around, and let us know. There definitely is other uses than just connecting to the Internet, but we’ll leave that to you to explore and learn for now.

Ever set up a virtual WiFi network? How did you do it? What were the ups and downs to your method? Is there one way that you would recommend over another? Let us know in the comments, that’s how we all learn, and we’re all in this together.

Image Sources: Sky Background via Flickr, Laptop, Android Tablet, Smart Phone, WiFi Wave via Pixabay.

Ads by Google

62 Comments - Write a Comment

Reply

Ashok K

Does any of these methods work with windows 7 starter netbook?

Guy M

No, Windows 7 Starter does not come with the necessary Virtual Wifi features. Sorry.

Reply

Victor O

What about buying a wireless portable router? I think MUO did a review on one of those recently. Why not get one of those?

Guy M

You could do that. However it’s one more piece of hardware to carry, and possibly get stolen or lost. These methods are just options to that. If you have the portable WiFi router AND a software WiFi router, then if one or the other fails, you’ve got backup.

Reply

Jo-anne P

That is all I run is windows 7 but I still enjoyed the article thanks for the post.

Nokia c1

Java

Reply

Richard L

Not necessarily true. Quite a few (recent) notebooks do not support this feature. The key error message is that the applications cannot start the server process. The root cause is that the network card used does not support this function. Until customers are aware of this issue & consciously avoid lame notebooks with this crippling limitations, the manufacturers will continue to foist these crap on the users.

Reply

Anthony

There’s software called Virtual Router that does this also. Just Google it, you’ll find it.

PRU

hey VIRTUAL ROUTER its not comng in my pc

Reply

Vince A

Can an android device (Tablet or Phone) connect to the internet through this ad-hoc wireless network described here?

James B

No. By default android isn’t compatible with adhoc networks.

Reply

Lew

You can also use the Soft AP (access point) feature of some USB WiFi dongles. The ones that use the RealTek 8187 chipset work great for this (even with Windows 7 Starter). A couple of mouse clicks and you are done.

Vince A: Android will not connect to an Ad-Hoc network. Will not even “see” it.

Guy M

If I recall correctly, the Soft AP feature is now on some on-board WiFi cards. I could be wrong though.

I can connect my Android KitKat and Jellybean devices to the ad-hoc network. What issues are you seeing? Error messages?

sralse

I’m getting no real errors, it just can’t verify, takes ages to verify with an android phone.

Reply

DuckGo

I’ve used a couple of the free software solutions but found them not very robust. The ad-hoc method is ok, but in the end I simply bought a dedicated wireless router and never looked back. I’d reconsider using one of the above methods in a pinch, but there’s no substitute for hardware – imo.

Guy

I agree.

Reply

AKRefugee

I travel in quasi third world areas of the world. Many times my team and I will show up and find a single wired connection and no wireless router. We take turns hooking up to send our data out which has caused to be on site for several days longer than we should have been. I was taught this method just before my last trip and my team and I tried it out. Worked great for us. Yeh, we could have brought a wireless router but believe me, if you take your eyes off of it it will be stolen. With our bags and laptops we already have enough to watch out for.

We don’t use it as a preferred way to hook to the internet but when we do need to use it I am glad we know how to do this.

Guy

It’s perfect for those kinds of situations.

Reply

Clay

I’ve used Conectify for a year or so now. Works very well with all devices (Android, ipad, pc) i’ve used to connect through it.

Reply

kevin

Also check this similar blog http://www.kevuke-howitgoes.blogspot.com , touches more of how to connect your Blackberry playbook via connectify-me

Guy M

Thanks for that. I do have issues with the BB Playbook sometimes.

Reply

Adam

Any ways of doing this with Ubuntu 13:10?

DrPhilFan

Not that I know of.

Reply

Jubel

the only problem with the built-in ad-hoc ability in windows 7 or earlier is that,when you turn off your computer then again power it up and starts your hotspot by manually clicking in the System Tray icon..it gives you a exclamatory sign/yellow sign that indicates that No Internet Access through your Hotspot ..well you can fix it by turning off Sharing Internet Connection mode and then Re-enabling it..i would prefer using Connectify,its easy,durable,fast,autmatic :)..thankyou

Guy M

Absolutely correct.

Reply

Vince A

Guy M, The device won’t even find the network. Doesn’t work for me.

Reply

Clay M

you can create a virtual wifi connection with a software ,
There are many such software I use winhotspot as the GUI is user friendly.

it also has some tools which will show connected devices mac address.

if you like to try it download from http://www.winhotspot.com or from cnet also u can download it

Reply

Sree

mHotSpot is one more bud utility to share internet connection.

Guy M

Cool, Sree. Thank you for that. The more options we have the more likely we are to find the one that best suits our needs.

Reply

Http://tricksforums.com/

Thanks for that tutorial. with this method Can i share my internet with my android device.

Guy M

If you’re looking to share with your Android, I highly recommend getting Connectify. It makes life so much simpler.

Reply

AJ

Hey there,
Based on my past 4 years experience the easiest way to share your internet connection using a your built in wifi is with the small application call “mHotspot’.

mHotspot is a completely free software which converts your windows 7 & 8 laptop into a virtual wifi router and creates a secure wifi hotspot. You can share single internet connection(LAN, Ethernet, Data-Card, 3G/4G, Wif) for multiple devices like laptops, smartphones, android phones, PDAs, Ipads etc. Play Multiplayer gaming using mHotspot. No router or external hardware is required apart from your existing one.

You can download this application from http://www.mhotspot.com/

Good luck and cheers…

Guy M

Lots of love for mHotspot in the comments! I may be the only person that wasn’t able to get it working well. Wouldn’t be the first time. Glad to hear it rocks for everyone else.

Rol

Works perfectly, after trying every other way, thank you.

mHotspot is the best

Guy

Hi Rol,

Very glad to hear it worked well for you.

I had troubles with it, but it seems to work great for most people. Good to hear.

Reply

guest1

mhotspot is building SEO.. Backlinking :)

Reply

jul

the text you give for making the batch file is wrong…
Why?
All the points after “echo” will not work.
But thanks a lot for this code !!
It’s what I was looking for.
I just have to erase all the points on the two lines after echo……………..
and then it works

Reply

Guy M

Weird. Works for me. Those dots are all just for show anyway, so yeah, blast them outta there.
Thank you for the comment though. Someone else might have the same problem and you just helped them! You should do something nice for yourself.

Reply

sahil

nice article keep writing buddy………thankyou

Reply

hamed

for connecting to my cable internet i should run cisco vpn in my laptop (as a dormitory rule). i share the internet with my cellphone through connectify but the internet in my cellphone don’t do anything. how can i make my internet wifi?

Reply

Will turner

I have internet over proxy through wi-fi, and tried to share internet with my wifi.
control panel (in network place) shows internet and shared both have internet access. but after connection is established with shared wifi to my mobile, i am unable to open web page on my mobile. so please help me from where i make setting to share internet with wifi hotspot

Reply

Chakku

Hi.!! great article.. but I’m having small problem, My mobile ( lumia 520 ) is connected with wifi hotspot but no internet!! I tried many solutions like resetting winsock and disabling/enabling drivers…And now my mobile doesnt connect to my wifi hotspot .. When i do troubleshoot , it says “Invalid ip address”.. Any solution ????
Thanks in advance :)

Reply

Guy

You may need to assign a static IP to your phone, for this WiFi connection. Check to see what IP range your hotspot is operating in and choose an IP within that range.

Reply

Mitthun

My laptop is showing “waiting for users” but in my mobile there is no wifi connection appear. what to do?

Reply

Angelin

Hi There
I’ve got the Galaxy Note 10 2014 edition and for some reason I can not connect to my shared internet connection on my Win8 laptop via mHotspot. I am connected to mHotspot but no Internet. I have uninstall my avast antivirus also disable my windows firewall but nothing.

Please help me am not sure what I am doing wrong
NB. I am using 3g modem

Guy

It might be possible that the 3G modem is not compatible with mHotspot for Internet access sharing.

Reply

Hyedima waha Dantaro

please what programming language is used to write this program.

Guy

It’s just batch commands for Windows DOS. Not really a programming language.

Reply

jackson musyoki

Microsoft Windows [Version 10.0.9926]
(c) 2015 Microsoft Corporation. All rights reserved.

”>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 opera
tion.”

the message above is what i get fro my laptop kindly assist

Guy

It sounds like Internet Connection Sharing might be turned off.

Reply

Angelin

Hi Guy
Thank you for your reply. I might have found the problem. It seems like my 3g software is blocking the Internet sharing, but when I start my Internet connection without using the software it does connect my tablet on to the internet, but then I loose my internet connection completely.
Am not sure if there is something a person can do or must I just drop this whole sharing thing.

Thanx for your time guyz. Cheeeerrs

Reply

prabhat

i have PC (window 7) with data card (tata photon without wi fi connection)… i want to share my net for my phone( htc 526 g)
is it work…
i want to make hotspot to my PC..

Reply

Akash singh

could not work

Reply

allenpuu

i using laptop connected wifi (window 8.1 pro), and i wan share line to dekstop via ethernet cable, how to settings?

Guy

All of the information on how to do this is in the article. So, I’m not sure what you’re asking for, exactly.

Reply

vigneshwaran

wifi hotspot is created in my laptop ,, and through mobile is also accessed,,, but no internet access,,, kindly give me the solution

Guy

There are too many unknowns to be able to give you the answer. Sorry.

Reply

Sam

first of all – thanks for this article…

i m on Windows 8.1 Pro on my HP laptop… WiFi is turned on… i don’t seem to find ‘Set up a wireless ad hoc (computer-to-computer) network’ under ‘Set up a new connection or network’

What m i missing?

Reply

Mirzo

hi guys

I have created my laptop Wifi hotspot, my mobile phone is also connected, however there is the problem. when i try to use my mobile phone browser, internet is not working, but on other apps such as whatsapp, viber ect. internet is woking
Could you help me with this problem please?

Guy

Hi Mirzo,

I wish I could, but that’s beyond the scope of what I can do here.

Have you tried asking this question in our Answers Section?

The authors that frequent Answers are top notch tech folks. I’m sure they can point you in the right direction.

Reply

saikrishna

me do that total above process but last say window not connect that so now what to do

Your comment