To set up an Ad Hoc Wireless Network in Windows 8/10 using command prompt, follow these steps:
Open Command Prompt as Administrator:
Press Win + X and select Command Prompt (Admin) from the menu.
Check if your Wi-Fi adapter supports Hosted Network: Run the following command to check if your Wi-Fi adapter supports hosted networks:
shell
Copy code
netsh wlan show drivers
Look for the line that says Hosted network supported. If it says Yes, you can proceed with setting up the Ad Hoc network.
Set up the Hosted Network: To create an Ad Hoc network, use the following command, replacing YourNetworkName and YourPassword with your desired network name and password:
1. netsh wlan set hostednetwork mode=allow ssid=YourNetworkName key=YourPassword
mode=allow: Allows the hosted network feature.
ssid=YourNetworkName: The name of your Ad Hoc network (SSID).
key=YourPassword: The password for the network (make sure it’s at least 8 characters long).
2. Start the Hosted Network: To start the network, run the following command:
3. netsh wlan start hostednetwork
Stop the Hosted Network (if you want to stop the network later): To stop the hosted network, use:
4. netsh wlan stop hostednetwork
Enable Internet Sharing (optional): If you want to share your existing internet connection (e.g., from Ethernet or another Wi-Fi connection) with the Ad Hoc network, follow these steps:
Go to Control Panel > Network and Sharing Center > Change adapter settings.
Right-click your internet connection (e.g., Ethernet or Wi-Fi), and select Properties.
Go to the Sharing tab and check the box for Allow other network users to connect through this computer's internet connection.
In the drop-down menu, select your newly created Ad Hoc network.
That’s it! Your Windows PC will now be acting as a wireless access point, and other devices can connect to it using the SSID and password you set up.
Comments
Post a Comment