On this page:
Because the wireless network picker in Windows 8.1 doesn't show ad-hoc networks, connecting must be done by hand.
To see all networks in range, including ad-hoc, run this command in command shell (cmd.exe):
> netsh wlan show networks
This must be done once per network:
- Go to "Network and Sharing Center" by right-clicking network icon in notification area
- Click "Set up a new connection or network"
- Double click "Manually connect to a wireless network"
- Enter the SSID "ADX 100" of the ad-hoc network (as shown by "netsh wlan show networks") into the "Network name" field
- Configure security settings accordingly, i.e. Authentication: Open, Encryption: None
- Un-check "Start this connection automatically" (important)
- Click "Next", then "Close"
Run this command (important):
> netsh wlan set profileparameter name="ADX 100" connectiontype=ibss
After setting up, run this command whenever you want to connect:
> netsh wlan connect "ADX 100"
Hovering over the WiFi icon in the system tray will show the name of the network that you are currently connected to, even if it's an ad-hoc network (the network picker will not show it if it's ad-hoc).
The name is also visible in "Network and Sharing Center" window.
To disconnect from the ad-hoc network: connect to a different network, turn off WiFi, or run this command:
> netsh wlan disconnect
To remove the network profile from Windows, run this command:
> netsh wlan delete profile name="ADX 100"
- Create a text file using a text editor like Windows Notepad with the following text:
(The ADX 300 and IP address are examples which should be changed according to your own settings)
netsh wlan set profileparameter "ADX 300" connectiontype=ibss
netsh wlan connect "ADX 300"
netsh interface ip set address name="Wi-Fi" source=static addr=169.254.29.241 mask=255.255.0.0
- Save this file with a user-defined name like “startup connection” with extension .bat.
- Test this file by double clicking on it (or right click and select “Run as administrator”)
- Check in Windows “Network and Sharing Center” if the connection is active.
- To automatically start up this network when the computer is started you can add this batch file to:
(First verify that the AppData folder is visible in “Windows Folder options”)
- Then add the batch file to:
- Test this setup by re-starting the computer.