Ad Hoc on Windows 8.1

Status
Not open for further replies.

Chief7

Honorable
Oct 23, 2013
2
0
10,510
So, I have a wireless card in my computer. I use it to create an ad hoc network to connect my GS4 there. I changed my Windows from 7 to 8.1 two days ago. On Win 7 I had created an Ad hoc. Not with the normal way though, since it didn't work and I needed to use a third party program, the well known, connectify. Now the normal way doesn't work again ( Normal way means that I don't use any third party programs ) even though I'm a little surprised this time since I thought that Win 8.1 made some improvments to this part.. But nevermind that. I installed again connectify but this time it doesn't work. I create the wireless network and the phone conncts to it but it doesn't get on the internet.. I tried many times the same way I did it back in Win 7 but nothing.. Does anyone have any ideas what's the problem?
Thanks for any suggestions in advance.
PS. Excuse my bad English..
 

RealBeast

Titan
Moderator
Windows 8 has the availability of the virtual miniport adapter and you should be able to enable it under network adapters in the device manager (if it is hidden you will first have to make it not hidden). Then you should be able to start it with the following string in an elevated command prompt: netsh wlan start hostednetwork
 

Chief7

Honorable
Oct 23, 2013
2
0
10,510


This is what I'm calling "Normal way". By doing it like this with the cmd it doesn't work. I used a third party program and it doesn't work either. Any either ideas?
 

ekze

Honorable
Jan 30, 2014
2
0
10,510
It turns out that Windows 8.1 doesn't show ad-hoc networks and it's by design. Not sure what on earth made them add this change.
Anyway, after a lot of digging, I was finally able to force it to connect. I compiled a small howto.
Note, this is NOT about how to create an ad-hoc network to share your Internet connection with another device! It's about how to connect your Windows 8.1 PC to an existing ad-hoc network created on another device.

How to connect to an ad-hoc WiFi network in Windows 8.1.
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

SETUP
This must be done once per network.
go to "Network and Sharing Center"
click "Set up a new connection or network"
double click "Manually connect to a wireless network"
enter the SSID of the ad-hoc network (as shown by "netsh wlan show networks") into the "Network name" field
configure security settings accordingly
uncheck "Start this connection automatically" (important)
click "Next", then "Close"
Run this command (important):
> netsh wlan set profileparameter <ssid> connectiontype=ibss
Replace <ssid> with the SSID of your network.

CONNECT
After setting up, run this command whenever you want to connect:
> netsh wlan connect <ssid>
Replace <ssid> with the SSID of your network.
Hovering over WiFi icon in 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.

DISCONNECT
To disconnect from the ad-hoc network: connect to a different network, turn off wifi, or run this command:
> netsh wlan disconnect

CLEANUP
To remove the network profile from Windows, run this command:
> netsh wlan delete profile <ssid>
Replace <ssid> with the SSID of your network.


Original answer by y4k on http://social.technet.microsoft.com/Forums/windows/en-US/56ff83ff-1f15-4fc1-aa37-6651340d46fa/windows-81-connecting-to-ad-hoc-networks?forum=w8itpronetworking



This script does the same thing automatically: http://www.sharebeast.com/5ft39mql0ysx
 

ekze

Honorable
Jan 30, 2014
2
0
10,510
As a work around, I would suggest you to use the Wireless hosted network and check if that helps you connect both the computers.

- In the Search Charms, type command prompt, right click on command prompt and select Run as Administrator.
- Type the following commands and press enter.

netsh wlan show drivers

note: Check the "Hosted network supported" string. If it is yes, then your wireless network adapter supports hosted network feature. If not, then you will not be able to use it.


If the string is yes, then follow these steps and check.

To setup a hosted network,

netsh wlan set hostednetwork mode=allow ssid=”DESIRED_NETWORK_NAME” key=”YOUR_PASSWORD”

To Start the Hosted network,

netsh.exe wlan start hostednetworkname

When you are finished with it, you can stop the connection using this command:
netsh.exe wlan stop hostednetworkname

You can get detailed information about the network you started with this command:
netsh wlan show hostednetworkname
 
Status
Not open for further replies.