Command Prompt

Command prompt list from various angles

https://www.amazon.com/clouddrive/share/w28xqpVr6udAVuaGLnQBDzpS34zbsao1tG5zfusSN02?ref_=cd_ph_share_link_copy


https://www.amazon.com/clouddrive/share/fT5H8uDP2V2g3v9ByRWKxQhO6pjeovzs6rKkfuwjlxq?ref_=cd_ph_share_link_copy


https://www.amazon.com/clouddrive/share/JXR6Yzb1iaBwy0Q0a7ZKWHWhOxlIlZxfZxXvEVNcOTE?ref_=cd_ph_share_link_copy


https://www.amazon.com/clouddrive/share/grm6Q2OWuAOEWksS7QcK5XR1q1pwmNHs2EGNoMN8pSZ?ref_=cd_ph_share_link_copy


Using command prompt, how to use your laptop's wifi to share internet provided by ethernet plugged in.


1) Open command prompt as administrator. You can do this by either pressing windows key+x in windows 10 OS, or going to start menu and locating command prompt shortcut, then right click it to choose "run as administrator".

2) Type "netsh wlan show drivers", as indicated in above screenshot. You should find hosted network supported : yes in the response



3) Then type "netsh wlan set hostednetwork mode=allow ssid=key=abcd@1234
Here, ssid will be desired name for your wifi 
and key will be password of that wifi




4) Meanwhile, you should go to network connections from control panel, and locate your ethernet icon, then go to it's properties, and under sharing tab, select local area connection with * icon if any, and press ok.

The local area connection with * icon indicates "microsoft virtual network adapter" which usually comes default with windows 10, but in others, it may need to be installed manually. It it's not installed, in above show drivers step, it may say "NO" when you check eligibility.




5) Then type "netsh wlan start hostednetwork" and press enter





6) You should be able to use your wifi now, from your phone, tablet or another laptop, by authenticating key and network names

7) If you want to stop sharing network, type "netsh wlan stop hostednetwork" and press enter. It will stop sharing wifi internet.


This sharing of network can also be done by various third party tools like mypublicwifi, connectify and many more. But my experience with other tools have been variable according to operating system versions of windows, types of network adapters hardwares and their drivers, as well as networking configurations like static, dynamic, proxy etc. And I have found this command prompt method as most successful in my practicals. Though it's cumbersome to setup, but success rates are pretty high.

You can automatize command prompt either by

1) creating batch file,
2) Putting the event into windows task scheduler
3) placing shortcuts of individual commands into windows system32 folder and then adding them manually into startup of windows

I will compare all methods in my upcoming youtube channel videos here, and post as well in this blog.

https://www.youtube.com/channel/UCcUXUOTjp0pjMRLerHt0Arw






No comments:

Post a Comment