I have been trying to share my wired Internet connection with my Android phone. However I could not succeed in doing this. Has anyone of you ever succeeded? Operating systems that I use are as follows:
- Ubuntu 10.10
- Android 2.3
Yes, it is possible. I have Ubuntu 11.04, NetworkManager 0.8.4, Android Nexus One phone running Cyanogenmod 7.
As described by Roman, right-click on the NetworkManager icon and choose "Create new wireless network". I chose to leave the connection wide open (no WPA, no WEP). My phone was able to see the network right away and I connected without trouble. The bridging was automatically done so I could browse the internet without configuring anything extra.
The reason why you having trouble with the above method is because stock Android 2.3 doesn't support ad-hoc networks. To be precise, Android's wpa_supplicant does not show ad-hoc networks. There are a number of ways to fix this. Google around and go hunting in the xda-developers forums. You will probably need to do some hacking on your phone that is beyond the scope of this answer.
My personal recommendation: if your phone supports Cyanogenmod, you can install it to get ad-hoc support and other hackish delights. You will need to root your phone, which may or may not be to your taste.
Another alternative is to try "Infrastructure mode". After setting up the ad-hoc wireless network as per above, click on the NetworkManager icon, choose "Edit connections". Hit the wireless tab and Edit the ad-hoc network you just created. Under Mode, choose "Infrastructure". I am unsure if this will work for you since I don't have a stock Android phone to test with. My thought is if ad-hoc mode is the problem, then the another mode might be the solution.
Please check out this link and tell me if it's roughly what you're looking for.
First of all as we all know stock ROM of Android i.e. the one which comes with the phone does not support ad-hoc mode (surprisingly), and even Ice-Cream Sandwich (Android 4.0) won't support ad-hoc mode.
So, we need to create an access point using Ubuntu to which any android phone can easily connect. In Windows you can use Connectify to do that and it works perfectly well but with Ubuntu you may have certain problems, depending on whether your wifi-card supports access point mode (master mode) or not.
Now, even if your wifi-card supports access point mode, the next problem is whether the driver of your wifi-card supports AP mode or not, if it does then the problem is solved and if does not then you have three options:
If you are interested you can post the name of your wifi-card driver so that I can help you further. Use this command:
I found a working solution to share my Internet connection with my phone via USB reverse tethering, but my laptop uses a wireless connection for it:
Internet -> Wireless -> Laptop -> USB cable -> Android phone
So if that would be possible for you, or if you have a second ethernet card for your pc, you should check out the 'Reverse Tether Trial' app from the play store.
Assuming you also have a wireless card in your computer: In Network Manager, click the menu and 'Create New Wireless Network...'. Later, you would be to see the network in your Android.
You can create a wireless network from your computers wifi menu. Right click on the wifi icon in the taskbar and click create new network. Fill out the options then connect to it from your phone. Make sure your computer is also connected to the wired network cable. The cable should be automatically bridged to the wireless from my understanding, and it should all work fine.
I tether with Android via USB tethering. You can also use Ubuntu's "broadband connection" feature that's in the nm-applet as well, but it's slower.
This works for me
After installing hostapd install dhcp server
sudo apt-get install dhcp3-server hostapd
Then, open a text editor program, for example
Please change to fill in the name of your network after
save the file as
Create a new ad-hoc wireless and connect it.
Now, Open terminal and type:
Turn on your phone wifi and find your ssid.
Source from HERE
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?