Tuesday, February 24, 2015

Share 4g dongle broadband connection with android device

Why you want to share 4g dongle broadband connection with android device. Android device can be set to be a wifi hotspot but if we setup adhoc network connection using windows device (laptop, desktop) android device could not find the network because of the limitation in the android OS itself.

After googling and yahooing, i found a way to enable adhoc network sharing with android device and also with other device meaning that we can share any 4G dongle that is not designed to become a wifi hotspot such as .. you name it yourself. hehe.. This method is tested in WIN 7. other windows user, use on your own risk. This method is using wpa hosted network using Command prompt but i had simplified the process using batch file.


1. download this file

2. right click on the file and click on edit

3. The file open in notepad, scroll to

"netsh wlan set hostednetwork mode=allow ssid=akupunya key=passkey123 keyusage=persistent"

change the "ssid" value to your chosed ssid name and the "key" value to your WPA key

Share 4G USB dongle


4. Save the file (File->save)

5. Open the file adhoc.bat as admin
Share 4G USB dongle

6. Set the wifi network, press 1 then enter.

"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"
7. Press enter then press 2 to start wifi sharing.

8. Press 4 to see the wifi sharing status.

9. Now  click on you network bar to open network and sharing center

Share 4G USB dongle

10. Click on change adapter setting

Share 4G USB dongle


Take note on a new network adapter name microsoft virtual wifi miniport adapter. Note the "wireless network connection 2" or whatever its title is. You will need it in the next step

Share 4G USB dongle

11. Right click on your dongle network adapter. You must connect to your broadband network first if you use third party connection manager i.e YES dongle, the network connection will be created every time you connect to the network. If you use TMGO , the network adapter will be created on first connection. Right click on it then choose properties.

12. Go to sharing tab , tick on "allow other network users to connect through this computer's internet connection". Select wireless network connection that appeared on step 10. then click OK.

Share 4G USB dongle


13. Whatever come after that just click OK.

14. On your android device, open WIFI, scan and you will see your created network SSID name in step 3 appear in the WIFI list, connect to the SSID, insert your WPA key. You will be connected to the network.

15. To check your connection, switch to adhoc.bat or open the file as admin if you have close it and press 4 in the menu page.

16. A prompt showing your hosted network status and connected client will be showed. Press enter and press 0 to exit.

17. If you want to stop the connection, open adhoc.bat as admin and choose 3 on the menu page.

18. REMINDER. If you are using broadband that create new network connection every time you connect , you must repeat all the step. If your broadband create permanent network connection like the one in the example, you will need to repeat step 6 and 7 only every time you want to share your broadband.

PS : if you use broadband connection in a LAN or WLAN network connected to router or hub or hotspot, just use step 12 to share the connection with your network. choose your network name in select a private network connection name dropdown.

if you have trouble downloading the file, copy all text below then paste in notepad , save as "adhoc.bat" , save as  type "all files" and start from step 3

That's it..  how to share 4g dongle broadband connection with android device. Thank you

See other Win 7 hidden tricks and features here. See it here

---------------------------------start copy below this line ----------------------------------
@echo off
CLS
:MENU
ECHO [-----------------------------------------------------]
ECHO [Press 1, 2, 3 or 4 to select your task, or 0 to Exit.]
ECHO [-----------------------------------------------------]
ECHO [ 1 - Set Wifi Sharing Attributes                     ]
ECHO [ 2 - Start WiFi Sharing                              ]
ECHO [ 3 - Stop WiFi Sharing                               ]
ECHO [ 4 - Status                                          ]
ECHO [ 0 - Exit                                            ]
ECHO [-----------------------------------------------------]
ECHO --
SET /P M=Type 1, 2, 3, 4, or 0 then press ENTER:
IF %M%==1 GOTO SET
IF %M%==2 GOTO START
IF %M%==3 GOTO STOP
IF %M%==4 GOTO STAT
IF %M%==0 GOTO EOF
:SET
netsh wlan set hostednetwork mode=allow ssid=akupunya key=passkey123 keyusage=persistent
SET /P N=PRESS ENTER TO CONTINUE...
CLS
GOTO MENU
:START
netsh wlan start hostednetwork
SET /P N=PRESS ENTER TO CONTINUE...
CLS
GOTO MENU
:STOP
netsh wlan stop hostednetwork
SET /P N=PRESS ENTER TO CONTINUE...
CLS
:STAT
netsh wlan show hostednetwork
SET /P N=PRESS ENTER TO CONTINUE...
CLS
GOTO MENU
--------------------------------to above this line----------------------------------------------

Share 4G USB dongle