1

I'm running a Node server on port :3000 and want to access it from other devices using Pi's wlan0 address.

wlan0: 169.254.36.22

  • Accessing from Macbook works
  • Accessing from iPhone works
  • Accessing from Android doesn't work (connection timeout)

eth0: 192.168.132 - Accessing from all 3 devices works good.

What could be the potential cause of this problem?

I lost every hope in Android devices. They don't support zeroconf (raspberrypi.local) out of the box, and now this weird problem.

Dino
  • 373
  • 2
  • 3
  • 10
  • I'm surprised anything can connect to a 169.254.x.x address - but I guess zeroconf makes that possible - read up on what 169.254.x.x addresses are ... then give you wlan a useful IP address instead – Jaromanda X Jan 29 '19 at 22:20
  • @JaromandaX That's what confused me. I'm familiar with 169 but it was unclear why iPhone and Mac would connect and Android no – Dino Jan 29 '19 at 22:22
  • @Dino is Android connected on the same access point with the other 2 computers? – GramThanos Jan 29 '19 at 22:26
  • @GramThanos yes all 3 of them are on same AP – Dino Jan 29 '19 at 23:13
  • Does the answer help you? If so, please accept it by clicking the tick on its left side. This will close the question and it will not pop up again and again and ... – Ingo Nov 02 '19 at 14:23
  • @Ingo It did not work for me. I guess that I am in the same situation of the original poster. Here more details: https://raspberrypi.stackexchange.com/questions/107188/android-wont-connect-to-raspi-access-point – ThePunisher Jan 11 '20 at 15:09

1 Answers1

1

The answer is already given in your question. Android does not support link-local ip addresses out of the box. It needs a DHCP server. If you are interested for details I have just verified this in Check up - Setting up a Raspberry Pi as an access point. On Checkpoint 4 you will see the access point (RPiNet) in the list of access points on your mobile phone but you cannot connect to it yet. Only if you configure a DHCP server to the access point interface (/etc/systemd/network/08-wlan0.network) the mobile phone will connect.

Ingo
  • 42,107
  • 20
  • 85
  • 197
  • I followed instruction similar to yours and I sticll can not connect my android phones. In particular I did the part involving DHCPServer=yes . And still my android devices keep trying reconnecting. – ThePunisher Jan 11 '20 at 15:08
  • More details: https://raspberrypi.stackexchange.com/questions/107188/android-wont-connect-to-raspi-access-point – ThePunisher Jan 11 '20 at 15:09