ap-hotspot cannot connect to android devices

I created a hotspot using ap-hotspot in my ubuntu 12.10. The created hotspot shows in my android phone but it get stucks in obtaining IP address.. How can I add an IP address?


Solution 1:

I just fix the same problem, try this:

sudo nano /etc/NetworkManager/NetworkManager.conf

Change the line that says:

dns=dnsmasq

To:

#dns=dnsmasq

Restart Network Manager:

sudo service network-manager restart