I setup adhoc connection in Ubuntu Linux. How can we connect android devices (2.3.3 and 4.0) to the adhoc wifi internet connection?
Simple answer: Android does not support Ad-Hoc networks by default (see also the ad-hoc-networks tag-wiki, which tells you this and more). This means, you will need to root your devices, and use an app for this specific task, which is known as reverse-tether.
Some solutions are summed up in the following questions (or rather in their answers):
- How to share internet among 2 android devices?
- Enable Adhoc on Jelly Bean
- Connect android phones through adhoc wifi network
- How can I establish an AD-HOC Wi-Fi connection on my tablet?
Yes ad hoc isn't supported in Android OS but typing 2 lines of DOS commands should solve the problem, I tested this and it works.
Type these 2 lines on DOS command prompt:
netsh wlan set hostednetwork mode=allow ssid=NAME key=PASSWORD netsh wlan start hostednetwork
I found it on this blog.