Is there any way I can get the date and time off the internet instead of off the local computer? I don't want the date to be changable, as the amount of time between runnings of the program is important.
Printable View
Is there any way I can get the date and time off the internet instead of off the local computer? I don't want the date to be changable, as the amount of time between runnings of the program is important.
Most organisations have free NTP servers, which you can connect to and get the time from their server, many such as csiro, nasa etc have these servers to use.
As far as I know you connect on port 17 and the server sends you its real time clock (atomic time) and you just simply set your pc to that time.
Look up NTP RFC's for exact info on correct syntax and workings of an NTP server and also a list of servers in your area for NTP servers. this is possible as i've done it before....