i set up a hotspot using ap hotspot,and my android phone is connected to the hotspot,but i am unable to access the internet on the phone, though it shows connected. i use Ubuntu 14.04
The firewall was restricting the access to internet. If you're using the GUI version of the firewall, it is as simple as opening the firewall and disabling it. This should solve all problems.