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

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

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest