Cannot Enable Internet Sharing

voyager1

Distinguished
Apr 17, 2010
99
0
18,640
I am trying to set up a WiFi AP on my ASUS P8Z77-V based PC. I want to access it with a laptop and another P8Z77-V based PC.

At first I tried to set it up with the ASUS Wi-Fi GO! WiFi Engine.
I was having problems getting it to work.
So in desperation, I tried setting up an ad hoc connection in Win7.
It is working.
The laptop can and is connected right now.
The problem is that I cannot enable internet sharing.
When I try to enable it, I get the old:
"Internet connection sharing cannot be enabled. A LAN connection is already configured with the IP address that is required for automatic IP addressing."

I have 2 active networks:
1. the wired Internet access
2. the WiFi network the laptop is connected to that cannot connect to the internet.

Now, I think the problem is caused by the second WiFi network that is disabled.
The one setup with the ASUS Wi-Fi Engine.
The ad hoc is on the Atheros Adapter [Wireless Network Connection].
It is currently enabled.
The Wi-Fi Engine is on the MS Virtual MiniPort Adapter [Wireless Network Connection 2].
It is currently disabled.
When enabled, this one cannot connect to the internet either.

I have tried to delete the second network, but Delete is greyed out.
I have looked at changing the IP address, but am mystified as to what I'd change it to.

Can anyone lead me by the hand to resolve this problem?
 

fyrye

Honorable
Jul 1, 2013
136
0
10,760
What kind of router do you have, assuming non-wireless router? This will give me more information as far as your router's default DHCP configuration (192.168.1.1 or 192.168.0.1, or 192.168.1.254, or 10.1.10.1)

Alternative to the below: http://www.connectify.me/

Ensure your Ethernet and Wireless adapters are set to auto, and ensure your wireless adapter is not connected to a wireless router.
Assuming your Router's DHCP is working correctly and does not reserve IP Addresses or require MAC Filtering.
1. Open your network connections, (windows icon, in search type "ncpa.cpl", press enter)
2. On each adapter right click, click properties
3. Double click IPv4, put a check into Automatic for IP Address and DNS
4. Click Ok to close all dialogs to return to the Network Connections.
5. Right click your Wireless Adapter and click Disconnect if already connected.

Now lets check some things out.
Open a command prompt as Admin (Start orb, search "cmd", right click and click Run as Administrator).
Now type in the following command:
"netsh wlan show drivers"
Look for the field that says hosted network supported, and ensure it says "Yes", if it says no, you aren't able to host using that adapter/driver. Update to the latest drivers and run the command again.

If it says yes type in the following command: (replace fields with <> with your own values)
netsh wlan set hostednetwork mode=allow ssid=<network name> key=<passkey>
EG: netsh wlan set hostednetwork mode=allow ssid=adhoc key=12345678
and press enter.
You should see:
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.


Once that is completed type in:
netsh wlan start hostednetwork
and press enter.
You should see: The hosted network started.

If it fails to start you may need to type:
netsh wlan set hostednetwork mode=allow
press enter then type in:
netsh wlan start hostednetwork
and press enter.

This will start the virtual hosted network and create a new connection in your network connections. Give it about 60 seconds to identify the network.
At this point we need to open up the network connections to configure the ICS and check the virtual adapter settings.
Click the windows orb, search "ncpa.cpl", and press enter

Next enable ICS through your Ethernet Adapter (wired connection).
Right click your ethernet adapter and click properties
Click the Sharing Tab
Put a check in "Allow other network users to connect through this computer's internet connection."
Ensure the Hosted Network Virtual Adapter name is in the Home networking connection: input/drop down box
EG: "Local Area Connection 11*"
Click Ok on the boxes to get back to your network connections windows

Once ICS is enabled check the adhoc IPv4 settings (Local Area Connection 11*)
Right Click the Microsoft Hosted Network Virtual Adapter and click properties
Double click IPv4 and ensure the IP and Subnet mask is filled in.
It should read IP: 192.168.137.1
Subnet: 255.255.255.0
Gateway: . . . . (empty)

if there is no IP address, open a command prompt in admin mode and type in:
netsh wlan start hostednetwork

You should be able to connect to the "adhoc" ssid from your device.

http://msdn.microsoft.com/en-us/library/dd815243%28VS.85%29.aspx

To delete and disable the hosted network virtual adapter, run a command prompt in admin mode and type the following:
Delete virtual hosted adapter: netsh wlan stop hostednetwork
Disable virtual hosted network: netsh wlan set hostednetwork mode=disallow
 

voyager1

Distinguished
Apr 17, 2010
99
0
18,640
Hi fyrye
Thanks for responding.
There is no router.
The ASUS P8Z77-V MoBo has a Qualcomm Atheros AR9485 Network Adapter built into the board.

Now, I have made some changes.
I finally figured out how to remove all networks and home groups, and did so from both the PC and the laptop.
Then, I ran regedit and removed all references to all my attempts at setting up a wifi network on the PC.

Then, I set up an ad hoc network on the PC, and connected the laptop to the network.
Internet sharing was activated on the PC in the setup process.
Then, I set up a Home Group with both the PC and laptop in it.

This is what I now have on the PC:


This is what I now have on the laptop:


With that said, I did try the things you suggested.
All went well until I reached this point:
Once ICS is enabled check the adhoc IPv4 settings (Local Area Connection 11*)
Right Click the Microsoft Hosted Network Virtual Adapter and click properties
Double click IPv4 and ensure the IP and Subnet mask is filled in.
It should read IP: 192.168.137.1
Subnet: 255.255.255.0
Gateway: . . . . (empty)

The IP address is set up to be obtained automatically.
When I try to set the addresses it squawks about it being used by the atheros connection.
That entry, apparently, is trying to setup the virtual miniport.

The miniport is disabled.
I am trying to connect through the Atheros connection.

Plus, It is looking to me that the problem is on the laptop.
Internet is enabled on the PC, but is not enabled on the laptop when connected to the PC.




 

voyager1

Distinguished
Apr 17, 2010
99
0
18,640
I downloaded the lite version of Connectify, and installed it on the PC.
I couldn't get it to work.

I want to thank you fyrye for your attempt to help me with this.
But, I am running out of time to play with it.
My motivation for setting up a network right now is to transfer files from my PC to the laptop in preparation for a long road trip that begins on the 31st.
The internet connection was just an exercise to see if I could get it done.
I think I can make the transfer with the wifi connection.
If not, I do have a crossover cable that I know will work.

I'll be on the road for a month or two with a physical move from Alaska to Hawaii as the end result.
No, I am not driving to Hawaii, but to San Diego, then putting my vehicle onto a freighter and I will fly.

I'll come back to work on this after I'm settled into my new residence in the new location.
It could be a while.
It's a 7K+ mile road trip and then a house hunt.
The PC is going to be in a box in storage for a while.

Thanks again.
I'll be back.