sharing internet via USB wifi device in Windows 10

  • Thread starter datatraveler2012
  • Start date
D

datatraveler2012

I have 2 Wi-fi adapters.One is the default Wifi adapter which is on the laptop which is present on all laptops,and then I have another wifi adapter which is a USB wifi adapter.


I want to share my wifi internet connection to other mobile phones via this laptop. My onboard Wifi adapter does not have the ability to create a hosted network the output of

(run this command as admin if you are on a normal cmd (Windows+R) then type

powershell "Start-Process cmd -Verb RunAs" admin command prompt will open)

cmd>netsh wlan show drivers

for onboard wireless chipset is


Interface name: Wi-Fi

Driver : Realtek RTL8723DE 802.11b/g/n PCIe Adapter
Vendor : Realtek Semiconductor Corp.
Provider : Realtek Semiconductor Corp.
Date : 03-05-2019
Version : 2024.0.8.107
INF file : oem54.inf
Type : Native Wi-Fi Driver
Radio types supported : 802.11n 802.11g 802.11b
FIPS 140-2 mode supported : Yes
802.11w Management Frame Protection supported : Yes
Hosted network supported : No

Hosted network support: No is there that means this can not be used to create a virtual access point.

As mentioned on the link here

How to Enable a Virtual WiFi in Windows


Now I have a USB wifi card of DLink

and output of netsh wlan show drivers for USB Dlink wireless chipset is


Interface name: Wi-Fi 2

Driver : D-Link DWA-131 Wireless N Nano USB Adapter(rev.E)
Vendor : D-Link Corporation
Provider : D-Link Corporation
Date : 25-09-2015
Version : 1030.2.731.2015
INF file : oem40.inf
Type : Native Wi-Fi Driver
Radio types supported : 802.11n 802.11g 802.11b
FIPS 140-2 mode supported : No
802.11w Management Frame Protection supported : No
Hosted network supported : Yes


So I can create a wifi hotspot on this USB Wifi device via the steps explained here

How to Enable a Virtual WiFi in Windows


check if your wifi card supports creating a wireless network

netsh wlan show drivers

if Hosted Network Support is yes then

netsh wlan set hostednetwork mode=allow ssid=mynetwork key=yourkey

start the hotspot netsh wlan start hostednetwork

netsh wlan stop hostednetwork



Now the problem is I have 2 wifi adapters. So how do I run this command on USB wifi device

netsh wlan set hostednetwork mode=allow ssid=mynetwork key=mykey


the problem is I do not know or rather say in the command it is not mentioned which Wifi interface to select to create a hotspot.


By default if I run the command (as admin)


C:\WINDOWS\system32>netsh wlan start hostednetwork

The hosted network couldn't be started.

The group or resource is not in the correct state to perform the requested operation.


This is trying to start hostednetwork on on board Wifi Realtek where as I want the hostednetwork to be on USB wifi.

So how can I achieve this?


Ok I got the method now when I posted the question I was not clear I am letting this information stay as it is so that it may help someone else

the answer here

has helped



netsh interface set interface name="Wi-Fi" admin=disabled

netsh wlan set hostednetwork mode=allow ssid=Your_SSID key=Your_Passphrase

netsh wlan start hostednetwork

netsh interface set interface name="Wi-Fi" admin=enabled


so I was able to start a hosted network (wifi hotspot on USB wifi) but I could not share the internet connection.


I got following error

533d4f57-c870-4377-b284-47acd5999dd0?upload=true.jpg


To enable Internet Connection Sharing a connection must be selected for the private network.Please select a connection from the list of available connections.



Now how do I get rid of this error as mentioned in screenshot and share my internet connection on my wifi hotpsot that I created on USB Wifi adapter.


edit 3

Ok I was able to figure out in the screenshot itself I had the option to select a private connection

1b828667-a3d1-4ae2-9e1e-26edfb92254c?upload=true.jpg


Now when I Select Wi-Fi 2 from the drop down

then my internet connectivity is gone from the USB wifi device. The USB wifi device is disconnected from the network.

See the screenshot in this Wifi-2 is showing unidentified network. So how do I keep wifi2 connected to the wireless access point.

This is happening always when I switch on the virtual wifi connection then actual USB wifi connection disconnects.


So how can I get rid of this error.

Continue reading...
 

Similar threads

A
Replies
0
Views
34
ahamed kazi
A
G
Replies
0
Views
44
Gangadhar Chikkala
G
S
Replies
0
Views
30
Shahir Kudrat Rafan
S
T
Replies
0
Views
24
Toonastic 800
T
Back
Top Bottom