Ethernet with IP static and SNTP

santanapablo1975
Posts: 34
Joined: Wed Feb 15, 2017 8:31 pm

Ethernet with IP static and SNTP

Postby santanapablo1975 » Thu Nov 30, 2017 11:51 pm

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Ethernet with IP static and SNTP

Postby WiFive » Fri Dec 01, 2017 2:59 am

Static IP you need to provide DNS server address

(Not a hardware question, wrong forum)

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Ethernet with IP static and SNTP

Postby ESP_Sprite » Fri Dec 01, 2017 8:19 am

Moved to SDK forum.

santanapablo1975
Posts: 34
Joined: Wed Feb 15, 2017 8:31 pm

Re: Ethernet with IP static and SNTP

Postby santanapablo1975 » Fri Dec 01, 2017 12:18 pm

Hi All,

Thanks for the tip about DNS

Sorry to habe bben in the HDK ;)

Regards

Juan

Have a nice WE

santanapablo1975
Posts: 34
Joined: Wed Feb 15, 2017 8:31 pm

Re: Ethernet with IP static and SNTP

Postby santanapablo1975 » Fri Apr 27, 2018 7:26 pm

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

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Ethernet with IP static and SNTP

Postby fly135 » Fri Apr 27, 2018 7:43 pm

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

Who is online

Users browsing this forum: No registered users and 94 guests