1

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.

1
  • my hotspot is being detected by the android device,but it gets stuck at obtaining ip address
    – george
    Apr 24, 2014 at 8:45

1 Answer 1

1

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
  • to configure

    sudo ap-hotspot configure
    
  • to start

    sudo ap-hotspot start
    
  • to stop

    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

wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb

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.

6
  • which ones can/?
    – george
    Apr 24, 2014 at 8:59
  • most androids are not advanced as ad-hoc provided by Ubuntu
    – Sudheer
    Apr 24, 2014 at 9:16
  • thanks very much it worked,but i experience slow internet connection on phone
    – george
    Apr 24, 2014 at 15:32
  • i did the same but still it is stuck on obtaining ip address Nov 19, 2014 at 11:43
  • @NiteshVerma edited my answer see that you may find your solution.
    – Sudheer
    Nov 24, 2014 at 2:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .