-->
Page 1 of 2

ESP8266 (NodeMcu) connecting to a server (fixed ip / ddns)

PostPosted: Wed Mar 07, 2018 11:15 am
by rodrigocirilo
Hello everyone.

I need the help of the smartest people.

I currently have some esp8266 working as client connecting to a server (C # application).

Use to connect the following: Client.connect (server, PORT)

the server address is: byte server [4] = {192,168,1,100};

everything works perfect it plugs perfectly.

However I need to make it connect to the server through a DDNS (server.ddns.net) for example but I do not know how to enter that value in the arduino IDE for ESP.

It would be lake type: string server {server.ddns.net} ??? I do not know I need this help .. please !!!

Re: ESP8266 (NodeMcu) connecting to a server (fixed ip / ddn

PostPosted: Wed Mar 07, 2018 2:55 pm
by rodrigocirilo
no one?

Re: ESP8266 (NodeMcu) connecting to a server (fixed ip / ddn

PostPosted: Wed Mar 07, 2018 4:55 pm
by schufti
what keeps you from trying

Code: Select all#define SERVER "server.ddns.net"
#define PORT 80
Client.connect (SERVER, PORT)

Re: ESP8266 (NodeMcu) connecting to a server (fixed ip / ddn

PostPosted: Thu Mar 08, 2018 6:10 am
by rodrigocirilo
Hello, I tried but it does not work, can not find the server.

If I use an app for smartphone (tcp client) for example and I send connect to that server address it works, by esp does not work!