LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-17-2015, 04:19 AM   #1
g_shyam1682
LQ Newbie
 
Registered: Jan 2015
Posts: 7

Rep: Reputation: Disabled
nptq give localhost timed out


Hello Friends,

I am working on embedded linux platform, and we successfully start ntpd over pppd (GPRS network) and get correct time form ntp server.
but whenever I use ntpq or ntpdc to query ntp, it does not query ntpd locally run on my linux board and try to connect with server over network and give error

localhost: timed out, nothing received
***Request timed out

my /etc/ntp.config as below
Code:
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1

# ntp logging
#logconfig all
#logfile /var/log/ntp.log

# sync to a single server
server 0.uk.pool.ntp.org  iburst
server 1.in.pool.ntp.org  iburst
server 0.asia.pool.ntp.org  iburst
server 1.asia.pool.ntp.org  iburst


driftfile /etc/ntp.drift


restrict 127.0.0.1
restrict ::1

# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
 
Old 03-15-2015, 07:29 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Quote:
Originally Posted by g_shyam1682 View Post
whenever I use ntpq or ntpdc to query ntp, it does not query ntpd locally run on my linux board
In your ntp.conf it literally reads "ntpd does not listen by default" and you have commented out any interfaces:
Code:
# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1
//NTLB
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] dig localhost doesn't give the answer section minlinux Linux - Networking 6 05-18-2014 11:02 AM
mail received at sendmail has relay=localhost [[UNIX: localhost]] check_rcpt fails chingupt Linux - Distributions 3 04-25-2013 06:36 PM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 08:28 AM
FC4 + Wine + IE6 + Localhost = 'Connection timed out' mrjamin Linux - Software 1 07-06-2005 02:11 AM
my web browser is telling me that localhost is refusing to give me a connection bcf2 Linux - Newbie 4 10-20-2004 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration