-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ntp server is not responding at read function call in ntpclient/main.c #7
Comments
Also i had changed the li_vn_mode value to 0x23 but still i am not getting response from server. Do i need to any more changes to make it to work> |
Hello @PravallikaKG, I pulled and compiled Are you able to reach the server specified? ping -c4 us.pool.ntp.org You should see something like the following. PING us.pool.ntp.org
--- us.pool.ntp.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 7ms
rtt min/avg/max/mdev = 66.001/66.107/66.221/0.197 ms 👍 |
Hi lettier, yes us.pool.ntp.org ntp server is reachable. yes when i pinged to server following is the output: ping -c4 us.pool.ntp.org --- us.pool.ntp.org ping statistics --- And also i added logs in main.c after connect, write and read function calls. Connection success, write success logs are printed, but program hanged in read call. Because read logs after read call are not printed. Also which ntp protocol version you have tried? 3 or 4 in code? Is there any alternate to check why server is not responding to my request from my computer? |
Problem got resolved. it is because of firewall in my network. Thank you lettier :) |
In ntpclient/main.c program, at read function call the program is hanging and not coming out. Looks like it is not getting response from ntp server.
Same case at recievefrom function call in python script as well.
Could someone give me a hint, for what reason it is hanging?
The text was updated successfully, but these errors were encountered: