my android device cannot connect to made wifi hotspot

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

1 Answer

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

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like