trouble loading web page hosted by ESP32

kyle68003
Posts: 1
Joined: Fri Nov 17, 2017 4:46 pm

trouble loading web page hosted by ESP32

Postby kyle68003 » Fri Nov 17, 2017 4:55 pm

I am trying to get my ESP32 to be an access point using WiFi.softAP.

I got everything to work as expected using a laptop running Windows and on a iphone.

When I try connecting on my phone (pixel) running android, the page times out and does not load. I can connect to the ESP32 over wifi but cannot get the page to load.

Any ideas on why this will work in Windows and ios but not android?


Thanks

User avatar
iot-bits.com
Posts: 25
Joined: Wed Dec 21, 2016 6:14 am
Location: India
Contact:

Re: trouble loading web page hosted by ESP32

Postby iot-bits.com » Mon Nov 20, 2017 3:59 pm

I think you should use telnet on Windows and try to make a manual request to see what response you get.

Something like
GET /anypage.html HTTP/1.1
Host: 192.168.x.x

If the response is not proper (such as the length of web page in bytes is smaller than what is specified in the header?), then you may be getting time-outs. If it is nothing that obvious, then it might be something more subtle.
- Pratik
:geek: Just another hobbyist and consultant

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: trouble loading web page hosted by ESP32

Postby kolban » Mon Nov 20, 2017 6:13 pm

Also check that your iPhone is connected to the same WiFi access point as your ESP32 and not connecting to the Internet via a cellular connection. When you try and launch the ESP32 web page, are you using an IP address or hostname? Can you "ping" your iPhone by its IP address from other devices on your local LAN? Are there any log messages written the web server app running on your ESP32?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: No registered users and 38 guests