Skip to content

Commit 1b7fd24

Browse files
committed
Fixed server address on UdpNtpClient example.
Fixes #1156
1 parent 2b66d84 commit 1b7fd24

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
For more on NTP time servers and the messages needed to communicate with them,
88
see http://en.wikipedia.org/wiki/Network_Time_Protocol
99
10+
Warning: NTP Servers are subject to temporary failure or IP address change.
11+
Plese check
12+
13+
http://tf.nist.gov/tf-cgi/servers.cgi
14+
15+
if the time server used in the example didn't work.
16+
1017
created 4 Sep 2010
1118
by Michael Margolis
1219
modified 9 Apr 2012
@@ -27,7 +34,9 @@ byte mac[] = {
2734

2835
unsigned int localPort = 8888; // local port to listen for UDP packets
2936

30-
IPAddress timeServer(192, 43, 244, 18); // time.nist.gov NTP server
37+
IPAddress timeServer(132, 163, 4, 101); // time-a.timefreq.bldrdoc.gov NTP server
38+
// IPAddress timeServer(132, 163, 4, 102); // time-b.timefreq.bldrdoc.gov NTP server
39+
// IPAddress timeServer(132, 163, 4, 103); // time-c.timefreq.bldrdoc.gov NTP server
3140

3241
const int NTP_PACKET_SIZE= 48; // NTP time stamp is in the first 48 bytes of the message
3342

0 commit comments

Comments
 (0)