I need to connect my android mobile phone to my RPi through wifi so i did some search online and found this tried both the automatic way and the manual one provided in the link, and the RPi started to broadcast its wifi! but the problem is when i connect any device to it.. my android phone stucks at "obtaining ip address" and my pc shows troubleshoot the problem, and then the RPi wifi network disappears! another issue in my case that after establishing the hotspot i can't connect to my Rpi via SSH over ethernet cable! so any link or advice to make my RPi broadcast its wifi? (i don't need it to connect me to the internet, just a local wifi network)

  • Is the hotspot setup to use DHCP? Commented Feb 23, 2014 at 16:14
  • yes it does. following another similar tutorial the udhcpd service works fine but the hostapd fails to start :/
    – DieDen
    Commented Feb 23, 2014 at 16:34
  • What WiFi adapter do you have? Does it support AP mode under Linux? Not all adapters do, even if they work otherwise. Look at the output from hostapd, and post it here if it looks interesting (run hostapd in a terminal with the flag -d or -dd for debug info). I wrote a blogpost about this some time ago, might still help.
    – Frepa
    Commented Jul 22, 2015 at 13:44

1 Answer 1


I had a very similar situation, hostapd and udhcpd, and it turned out both my Android phone and MacBook were rejecting the DHCP offer from udhcpd because I didn't have any DNS servers configured in udhcpd.conf.

I don't need DNS on this network - this AP isn't a gateway, just a standalone device I need to ssh to every now and then - but once I put in:

opt     dns

both Android and OS X connected fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.