Skip to content

Instantly share code, notes, and snippets.

@basoro
Last active October 4, 2017 02:50
Show Gist options
  • Save basoro/a73fadc62d99cac64896b14282cf1e46 to your computer and use it in GitHub Desktop.
Save basoro/a73fadc62d99cac64896b14282cf1e46 to your computer and use it in GitHub Desktop.
Turn Your Windows PC into a Wi-Fi Hotspot from the Command Line
@basoro
Copy link
Author

basoro commented Oct 4, 2017

Windows 10, like Windows 7 and 8 before it, comes with a built-in Wi-Fi hotspot feature that can share your computer's internet access. However, it requires you to have a wired internet connection or a second network adapter (i.e., plugged into the router or modem via Ethernet) or two Wi-Fi cards--one for sharing and one for your laptop. In Windows 8 and Windows 10, this internet connection sharing feature is hidden, with no graphical interface, but you can enable and disable it from the Command Prompt.

  1. Open a command prompt with administrative privileges. The quickest way is to tap the Windows key, type in cmd, and then right-click on the Command Prompt app listing and choose "Run as an administrator."
  2. In the command prompt window, type in netsh wlan set hostednetwork mode=allow ssid=[SSID] key=[bpassword]. Replace [SSID] and [password] with the network name you want for the Wi-Fi network and the password for it (without the brackets).
  3. Type netsh wlan start hostednetwork at the prompt and hit Enter to start the network:
  4. Open Network Connections (search in the Start menu for "view network connections" and click on the result)
  5. Right-click on your main network connection and choose "Properties."
  6. Go to the Sharing tab and click the checkbox labeled "Allow other network users to connect through this computer's internet connection".
  7. In the dropdown box right below that, choose the network connection your computer is currently using. Click OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment