Why cannot my android phone cannot display webpage sent from ESP8266 ?

magnetron
Posts: 9
Joined: Tue Nov 10, 2015 10:13 pm

Why cannot my android phone cannot display webpage sent from ESP8266 ?

Postby magnetron » Thu Feb 23, 2017 6:54 pm

hello dear forum,

the below webpage is sent from ESP8266 to the WinXP PC
( the picture is a bit old - in the meantime I developed the same webpage and included HTML checkbox )

Image

however when I want to see the same webpage from my android phone
following error displayed
------------------------------------------
192.168.1.110 doesnot work - 192.168.1.110 sent an invalid response
ERR_INVALID_HTTP_RESPONSE
-------------------------------------------
however when I also direct the ESP 8266 message traffic to the serial port of PC
I can see the internet package sent from android going to and coming from ESP8266 on hyperterminal

why I cannot see the webpage on my android phone ( chrome browser )?
( I type 192.168.1.110:1024 )

thanks

pratik

Re: Why cannot my android phone cannot display webpage sent from ESP8266 ?

Postby pratik » Wed Mar 01, 2017 2:10 pm

Seems like you are sending an invalid HTTP header to the phone.
Does the exact same thing work good with a PC?
Also, make sure that content length parameter in header is correct, all data is base64 compatible (non-text data is not allowed in HTTP!)
Also, make sure no random double-newline characters are present. That marks the end of HTTP header and may result in early termination of header by mistake.

milesstone
Posts: 22
Joined: Mon Apr 26, 2021 4:50 pm

Re: Why cannot my android phone cannot display webpage sent from ESP8266 ?

Postby milesstone » Thu Jun 03, 2021 10:21 pm

magnetron wrote:hello dear forum,

the below webpage is sent from ESP8266 to the WinXP PC
( the picture is a bit old - in the meantime I developed the same webpage and included HTML checkbox )

Image

however when I want to see the same webpage from my YOWhatsApp android phone
following error displayed
------------------------------------------
192.168.1.110 doesnot work - 192.168.1.110 sent an invalid response
ERR_INVALID_HTTP_RESPONSE
-------------------------------------------
however when I also direct the ESP 8266 message traffic to the serial port of PC
I can see the internet package sent from android going to and coming from ESP8266 on hyperterminal

why I cannot see the webpage on my android phone ( chrome browser )?
( I type 192.168.1.110:1024 )

thanks

Your ESP creates its own little LAN, and you can access it when you're part of this LAN. But when you're connected to mobile network you are part of global internet which doesn't know anything about your ESP's LAN. So, you need to connect them somehow.

Nielson
Posts: 19
Joined: Wed Dec 09, 2020 4:15 pm

Re: Why cannot my android phone cannot display webpage sent from ESP8266 ?

Postby Nielson » Thu Jun 10, 2021 10:42 pm

milesstone wrote:
magnetron wrote:hello dear forum,

the below webpage is sent from ESP8266 to the WinXP PC
( the picture is a bit old - in the meantime I developed the same webpage and included HTML checkbox )

Image

however when I want to see the same webpage from my YOWhatsApp android phone
following error displayed
------------------------------------------
192.168.1.110 doesnot work - 192.168.1.110 sent an invalid response
ERR_INVALID_HTTP_RESPONSE
-------------------------------------------
however when I also direct the ESP 8266 message traffic to the serial port of PC
I can see the internet package sent from android going to and coming from ESP8266 on hyperterminal

why I cannot see the webpage on my android phone ( chrome browser )?
( I type 192.168.1.110:1024 )

thanks

Your ESP creates its own little LAN, and you can access it when you're part of this LAN. But when you're connected to mobile network you are part of global internet which doesn't know anything about your ESP's LAN. So, you need to connect them somehow.

I did just this for my Senior Capstone Design. I used Arduinos ep8266webserver library and using postman for POST and GET scripts.

Who is online

Users browsing this forum: No registered users and 12 guests