ESP8266 Developer Zone The Official ESP8266 Forum 2017-09-07T14:38:25+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=6267 2017-09-07T14:38:25+08:00 2017-09-07T14:38:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6267&p=15599#p15599 <![CDATA[Re: How To Connect to a Public IP]]> Statistics: Posted by Guest — Thu Sep 07, 2017 2:38 pm


]]>
2017-09-07T02:29:33+08:00 2017-09-07T02:29:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6267&p=15590#p15590 <![CDATA[Re: How To Connect to a Public IP]]>
Thank you very much

Statistics: Posted by lfm_ — Thu Sep 07, 2017 2:29 am


]]>
2017-09-06T22:35:03+08:00 2017-09-06T22:35:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6267&p=15586#p15586 <![CDATA[Re: How To Connect to a Public IP]]>
I've also tried the website, however how much do I try this way returns DNS FAIL

Did I configure it wrong?

Statistics: Posted by lfm_ — Wed Sep 06, 2017 10:35 pm


]]>
2017-09-06T21:59:16+08:00 2017-09-06T21:59:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6267&p=15582#p15582 <![CDATA[Re: How To Connect to a Public IP]]> So instead of connecting to, for example, 192.168.1.104 @port: 80
You can try www.yourcloudserver.com @whichever port you want

Statistics: Posted by Guest — Wed Sep 06, 2017 9:59 pm


]]>
2017-09-06T20:40:58+08:00 2017-09-06T20:40:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6267&p=15581#p15581 <![CDATA[How To Connect to a Public IP]]>

I'm trying to make a connection on my public IP and I'm not getting it, but if I connect to a local machine, it works.

This is the code i am using:

Code:

internet.println("AT+RST");
delay(2000);
internet.println("AT+CWMODE=3");
delay(100);
internet.println("AT+CWJAP=\""+ network +"\",\""+ password +"\"");
delay(2000);
internet.println("AT+CIFSR");

internet.println(""AT+CIPSTART=\"TCP\",\""  + IP + "\"," + Port")


If I connect to a local IP, it works, if I try to connect to my server in the cloud the return is ERROR CLOSED.

What should I do?

Statistics: Posted by lfm_ — Wed Sep 06, 2017 8:40 pm


]]>