Page 1 of 1
Ethernet with IP static and SNTP
Posted: Thu Nov 30, 2017 11:51 pm
by santanapablo1975
Hi All,
Finally I got a static IP for Ethernet, modifying the function tcpip_adapter_dhcpc_stop, but when I test the SNTP example, is not possible to get the time from the server.
This behavior is normal or I missing something?
Regards
Thanks in advance.
Juan
Re: Ethernet with IP static and SNTP
Posted: Fri Dec 01, 2017 2:59 am
by WiFive
Static IP you need to provide DNS server address
(Not a hardware question, wrong forum)
Re: Ethernet with IP static and SNTP
Posted: Fri Dec 01, 2017 8:19 am
by ESP_Sprite
Moved to SDK forum.
Re: Ethernet with IP static and SNTP
Posted: Fri Dec 01, 2017 12:18 pm
by santanapablo1975
Hi All,
Thanks for the tip about DNS
Sorry to habe bben in the HDK
Regards
Juan
Have a nice WE
Re: Ethernet with IP static and SNTP
Posted: Fri Apr 27, 2018 7:26 pm
by santanapablo1975
WiFive wrote:Static IP you need to provide DNS server address
(Not a hardware question, wrong forum)
Hi WiFive,
It is a question again about Static IP and DNS..., the situation is as you mention is necessary to provide de DNS server address, so far is Ok and I have tested it, but my new question it is a issue inside the LWIP and/or the ESP32?... or better why with static IP the DNS is not resolved and we have to use the address?
Thanks in advance
Juan
Re: Ethernet with IP static and SNTP
Posted: Fri Apr 27, 2018 7:43 pm
by fly135
DNS addresses are obtained with DHCP when using dynamic ip. When using static IP you need to provide it yourself. If you've ever configured the network address on a PC you'd see the same thing.
John A