Page 1 of 1

SNTP and static IP

Posted: Fri May 22, 2020 2:15 pm
by Dig Kleppe
Not the first post about this:
I have set dhcp off, set IP, mask and gateway.
Set sntpservers to "8.8.8.8" and " 1.1.1.1"
From the ESP i can ping these addresses, so the gateway is ok.
No time. What am i missing?

I "solved" the problem by starting with DHCP, getting the time, and moving to a fixed IP.
There must be a better way!
I use the (very) latest 4.1 idf.

Thanks,
Dig

Re: SNTP and static IP

Posted: Fri May 22, 2020 9:35 pm
by markkuk
1.1.1.1 and 8.8.8.8 are public DNS servers, not NTP servers. Use the pool.ntp.org servers for NTP/SNTP.

Re: SNTP and static IP

Posted: Sat May 23, 2020 2:06 pm
by Dig Kleppe
Hi markkuk
It would take 100 years for me to find out ...
It works with the right ips.
Thanks
Dig