first I created a wifi hot spot for android successfully. Its being detected but cannot connect, its getting stuck at obtaining ip address. why? please help.
Android devices (some Android phones) cannot detect Ubuntu created ad-hoc wifi. For Android phones to detect wifi install ap-hotspot. It has no GUI, it runs on the command line.
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install ap-hotspot
sudo ap-hotspot configure
sudo ap-hotspot start
sudo ap-hotspot stop
If you get problem connecting with the android devices then try the below steps,
The problem may be with the recent hostapd(bugs) version package that installs with ap-hotspot.
First uninstall ap-hotspot. Download old hostapd package(bug free) you can get it from
To install hostpad.deb you can use gdebi package manager or simply from terminal
sudo dpkg -i hostapd_1.0-3ubuntu2.1_amd64.deb
After installation you need to hold the package so that it won't get updated to latest version, open your terminal
sudo apt-mark hold hostapd
Now install ap-hotspot normally.
Do not update the hostapd package.