How to Set Up Wi-Fi Access for a Phone from a Laptop Without a Router?

Practice




I have a laptop with Windows 7 connected to the internet via 3G
How do I set up Wi-Fi access for a phone from a laptop without a router?

Setting up Virtual WiFi

We will need a laptop or a regular personal computer with a wireless device, Windows 7, and a driver supporting Virtual WiFi.

Press Win R - run cmd
and in the command line type

netsh wlan set hostednetwork mode=allow ssid="MS Virtual WiFi" key="1234parol" keyUsage=persistent


In this example "MS Virtual WiFi" -
is the name of the wireless network,
"1234parol" is the password for accessing this network (you can set any value but no less than 8 characters).

After executing this command, the system will find the new hardware, and a new virtual network adapter will appear in Device Manager - Microsoft Virtual WiFi Miniport Adapter (Microsoft Virtual WiFi miniport adapter).

Going to Control Panel - Network and Sharing Center - Change Adapter Settings, we will see a new connection Wireless Network Connection 2, which will show the status - not connected.

Therefore, the next step will be starting the network. To do this, you need to run the following command in the command line, also run with administrator rights:
netsh wlan start hostednetwork


After that, the network will start, and the software access point (SoftAP) will start working, this can be verified by going to Control Panel - Network and Sharing Center. Since we are already using an internet connection via WiFi, we will find that Windows 7 is connected simultaneously to several wireless networks. Now other wireless devices can connect to our access point.

In order to have internet on the connected devices
(that is, to organize a Hot-Spot), you need to go to the tab
Control Panel -
Network and Sharing Center -
Change Adapter Settings and in the properties of the connection through which the laptop gets internet (in our case it is a WiFi connection, but it can be any: ethernet, 3G, WiMax, etc.),
on the Sharing tab check the box Allow other network users to connect through this computer's Internet connection, and in Home networking connection specify which network adapter to provide (share) the internet, in our case it will be Wireless Network Connection 2, which belongs to the virtual wireless adapter.

After doing all this, an access point appeared on my phone, and I connected to it, but there's no internet - why?

First, you need to disconnect the connection on both the laptop and the phone
and connect again

Second, on the shared connection (the one you use to connect to the internet - for example a 3G modem) go to the "Sharing" tab
setup and select the needed services - web server HTTP and secure web server SHTTP

in this case, the adapter of the shared connection should show - connected, shared

thank you, connected from the phone

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Diagnostics, maintenance and repair of electronic and radio equipment"

Terms: Diagnostics, maintenance and repair of electronic and radio equipment