Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7970303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:22:39+00:00 2026-06-04T07:22:39+00:00

How to do? I am a beginner coder – full references and code would

  • 0

How to do? I am a beginner coder – full references and code would help. I literally spent like 5 hours trying to find a solution to this – there are some references online but nothing works! And I don’t have access to the NTP server and yes I have to use a public server – such as time.nist.gov.

Help!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:22:40+00:00Added an answer on June 4, 2026 at 7:22 am

    Short answer:
    Not doable.

    Long answer:
    Even if cross-origin policy would allow it, there’s no way to get NTP directly via Ajax without PHP (or something) relaying your request. First reason is that time servers normally stay on UDP port 123; there’s no way for Ajax to do UDP; if that’s not enough, when Ajax sends a request to a server, it expects to see in response some HTTP headers, some status codes, a response body, etc. NTP doesn’t keep that structure, it only sends a string. And there is no raw socket connection support in HTML5 either.

    But what you can do with Ajax is look at the request headers because most responses come back with a header that looks like this:

     Date:Mon, 21 May 2012 15:30:58 GMT
    

    And there’s your time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am beginner with Java, and I would like to write some code like
So I'm very beginner with javascript and would love some help simplifying this code.
I'm a beginner in C and I have code like this : #include <stdio.h>
I'm a beginner in C and Let's say I have a code like this:
I'm a beginner PHP coder, recently I've been told I indent my code not
I am beginner to java and was trying out this code puzzle from the
I'm a beginner iOS/ObjectiveC coder and am trying to understand some details rather than
I am Fortran beginner and I am trying to adopt some ifort code for
I am beginner and trying to develop facebook desktop apps with below code use
Help iv'e seen other questions but I'm a beginner with c# Code: namespace Input_Program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.