Computer Science, asked by Mahidhoni4790, 1 year ago

How to access wifi hotspot in a laptop using command prompt?

Answers

Answered by NavedAkhter
0
To create a Wi-Fi hotspot, you should have a wireless card installed on your laptop. Begin with turning on Wi-Fi on your PC or Laptop. You can find a dedicated Wi-Fi button on your laptop or click on Notification Center in Windows 10 and turn on Wi-Fi.



Next, open elevated command prompt (command prompt as administrator).

Open command prompt using Run – Press Windows Key + R and type in cmd in the Run dialogue box and hit enter.



Open Command prompt from Start – Right click on Start button and select Command Prompt (Admin). This should open the command prompt in administrative mode. Or press Windows key + X and select Command Prompt (Admin).

To Read About- Fix Windows Error 651 Click Here



In the command prompt Window, type the following command:

netsh wlan set hostednetwork mode=allow ssid=MyWi-Fi key=yourpassword
In the above command, “MyWi-Fi” is your Wi-Fi hotspot name and “yourpassword” will be your password. Change it according to your need.

Press enter to create the hosted network. If the hosted network is created successfully, you should see a success message.

Step 2: Start the Wi-Fi Hotspot

Now you need to start the hosted network, to do this type the following command:

netsh wlan start hostednetwork


This will start the hosted network on your PC and a connection named as MyWi-Fi (or whatever you named it) will appear in Network Connection list.

To Read About- Chrome Connection Reset Error Click Here

Next step is to share the existing internet connection with a newly created Wi-Fi hotspot.



Go to Control Panel, Network and Internet and open Network Connection. Or copy and paste this “Control Panel\Network and Internet\Network Connections” in Windows Explorer.

Right-click on your existing internet connection and select Properties. In my case, it was Mobile Broadband Connection 3.



From the properties window, click on Sharing tab.

Now check “Allows other network users to connect through this computer’s Internet connection.”

Click on “Select a Private Network” and select the newly created Wi-Fi connection from the drop-down list.



Click on the OK button to save the settings and close the properties window.

Now if you go to Network and Sharing Center in Control Panel, you will see your newly created Wi-Fi connection listed in active networks section.



That’s it! Take out your phone, tablet, and laptop and start using the Wi-Fi. You can stop Wi-Fi connection either by disabling Wi-Fi (Turning OFF Wi-Fi) or by typing “netsh wlan stop hostednetwork” command in command prompt.

Whenever you want to start the Wi-Fi network, open the command prompt as Administrator and type in “netsh wlan start hostednetwork” command.
Similar questions