Wednesday, February 25, 2015

Sharing internet of USB data card(3G Dongle) through laptop as wifi hotspot

To share internet of USB dongle through laptop as a wifi hotspot, first you should check if your laptop supports hosted network.To check if hosted network is supported you need to open control panel with administrative privilege and type in the following and press enter.
netsh wlan show drivers
Now if you see Support hosted network : YES as the result  then your device can act as a virtual wireless router and to do so follow the following steps.

  • Open command prompt with administrative privilege.
  • Type follwing command to create an access point named embedded_system with security key 123456789.
netsh wlan set hostednet mode=allow ssid=embedded_system key=123456789

Setting hosted network named embedded_system
  • Now your hosted network is set and to start this hosted network type following.
netsh wlan start hostednet
Starting hosted network

  • To see the status of hosted network type following.
netsh wlan show hostednet

Checking status of hosted network
  • To stop hosted network type following.
netsh wlan stop hostednet
Stopping hosted network
  • Now you can see wireless network named embedded_system but this network still doesnot have internet access and you will only be able to share file at this moment. Now to provide internet access through this wireless network refer following process.
  • Open network and sharing where you will see two networks i,e one source of internet and another wireless network we created named embedded_system and note the network adapter used by these connection.

network and sharing
  • Click on the connection type named wireless terminal(in first rectangular box shown in above figure) and you will see the internet status of USB dongle.
  • Now click on properties and you will be directed to another dialogue box.
  • Click on sharing tab and click on checkbox Allow other network users to connect through this computer's internet connection.

network and sharing


  • Now from the drop down menu of Home Networking connection select the connection of wireless network we created.In my case it is Local Area Connection* 13.
network and sharing

  • Now click on OK and then click on Close.
  • Now from the command prompt stop the hosted network and again restart it.
  • Go to network and sharing centre where you can check the internet status of hosted network.

Now you can connect devices supporting wifi to this wireless network and enjoy internet surfing.

No comments: