-->
Page 1 of 1

AT+CIPSTART: TCP connection keep closing for few websites

PostPosted: Tue May 23, 2017 1:10 pm
by upp_kishore
Hello All,

I have recently started working with ESP8266.

Looking at some examples on web I managed to get/post some data onto thingspeak website. Later I created a small php web interface(http://www.mrsvskiran.000webhostapp.com ... erface.php) which basically should be updated by sensor value connected to ESP8266 and should send out the updated LED value from the web interface to ESP8266.

For connecting to host "www.mrsvskiran.000webhostapp.com", I am giving the command "AT+CIPSTART=0,"TCP","www.mrsvskiran.000webhostapp.com",80". I am also getting response saying that "0,CONNECT

OK" . But within few seconds I am getting the message "0,CLOSED". If I use the same command to connect with Google.com, I see that the connection stays live. Not able to figure out the issue here. Request you to kindly let me know the solution for this.

I am pasting the set of commands and the response I am getting below:

AT+GMR

AT version:1.1.0.0(May 11 2016 18:09:56)
SDK version:1.5.4(baaeaebb)
Ai-Thinker Technology Co. Ltd.
Jun 13 2016 11:29:20
OK

AT+CWMODE=1
OK

AT+CWJAP="xxxx","xxxx"

WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP

OK
AT+CIFSR

+CIFSR:STAIP,"192.168.x.xxx"
+CIFSR:STAMAC,"5c:cf:xx:xx:xx:xx"

OK
AT+CIPMUX=1


OK
AT+CIPSTART=0,"TCP","www.mrsvskiran.000webhostapp.com",80

0,CONNECT

OK
0,CLOSED
AT+CIPSEND=0,93

link is not valid

ERROR

---------------------

Thanks in advance !!

Re: AT+CIPSTART: TCP connection keep closing for few website

PostPosted: Tue May 23, 2017 8:37 pm
by atexit8
You may want to put a simple HTML file on that web server and see if you are able to read the file.