OK, thanks for the suggestion. I'll probably change it to something like: User-Agent: NetTime/2.10 or something similar.
User-Agent: Mozilla/3.0 (compatible)
Files section is not up-to-date | SF project has not been updated
Dear @ghjm, @markgriffiths, Thanks for all your work with NetTime. It is possible to update this Sourceforge project? Graham: Mark is not "admin", can you change it? You are the only person who can do it. The latest version here is 3.14 - https://sourceforge.net/projects/nettime/files/ No latest versions specified here (binaries and source codes): - http://www.timesynctool.com/ (no HTTPS) I think that this tab can be removed: - https://sourceforge.net/p/nettime/code/ Mark can update with missing...
Hi Ken, Not retrying the server for 15 minutes after receiving a Kiss of Death from it is expected behavior. Under the NTP protocol standard, a Kiss of Death packet is a way for the server to tell clients to go away and use a different server if possible, so if the client has to retry, it should wait a while before doing so. You could perhaps set the NetTime service to run as a "Delayed start" to give the router a bit more time to start up. Let me know how you go with this suggestion.
I think this is clear but I wanted to clarify that the router has the NTP server on it, and the local PC behind it is not going out to the internet.
We are using a router (OpenWrt) that is powered on at the same time as our PC. The PC is incidentally a little faster to boot than the router and it fails at least on the first attempt. At least one time I saw the message in the log "Kiss of Death" from our router. Even though I have the "retry" setting to 1 minute it was waiting to retry in 15 minutes. Is this normal behavior? I would prefer if it were to retry in 1 minute, especially if time has not yet been synchronized. BTW, this is so much better...
OK, do you have another computer that is also running all of the time? If so, you could set that up with NetTime to act as a server and configure your laptop with this issue to sync to it.
I applied the settings, did not help to solve my problem.
Hi Marek, Thanks for that. I've taken a look at your log file and I've gone and taken a look at the NetTime source code as well: NetTime already actually works pretty much as you're suggesting: It stores the number of seconds until the next sync is due and decrements that counter every second until it reaches 0 and then does a regular sync then. From your log files, I'm guessing that you're right that there's something wrong with the real time clock in your laptop and the problem is coming about...
My log file (2 MB text file): https://mega.nz/file/9VxyzCCD#caH96_X7Q_K51DwAyUFerBW6CunQTKckNC6rtHhSVBw
It's not really possible for software to account for bad hardware. If on one broken laptop the RTC doesn't work but countdown timers do, there's no reason to think another broken laptop won't be the other way round. As a result I would hesitate to change the way the update interval works.
Hi Marek, That does seem rather odd. It sounds like the time has gone backwards, but NetTime should be detecting that and try to sync straight away. If the network is down at the time, it should detect when the network goes back up and then do a sync then. It might be worth emailing a full copy of your log file just so that I can get a better idea of what's actually going on. It might still be worth doing as you suggest, however it's also possible that something else is going on which is affecting...
Change countdown method
The correct command line option for Daniel and me is /updateonce. There is no need of my previous batch file. I programmed the task manager to launch nettime.exe /updateonce at system bootup
Hi, I have the same need as Daniel: sync at boot and exit. I used the /synconly option but nettime keeps in tray. I have to wait 5 seconds and then kill process. I used the following command line code: start "" NetTime.exe /synconce timeout /t 5 /nobreak taskkill /f /im NetTime.exe I have to use start command because NetTime locks CLI if launched directly. I have to use force option (/f) in taskkill command because NetTime ignores termination signal sent by taskkill.
How to do this on Windows? CLI command
You can effectively do this already by running the program with the /synconce command line parameter. Make sure that it is run with administrator privileges.
Feature request: Close program after successful sync
Ok, it seems I got the picture of how it currently works correctly. Well, I think I given my suggestion to these new feature in a way that your understand what I mean. Even if you decide to implement the way it currently is, it will still be better than just supporting NTP, and if it can be the way I suggest it would be perfect for me and likely to most people wanting the most accurate time possible over Internet but with the advantage of knowing that there is little chance some attacker influence...
Yes, that's correct.
I've tested version 3.14 and it seems to only connect to the first server in the list and not to the other ones unless the first server doesn't answer? That is why a wrote that. By your answer it seemed that the program connects to the first server, and if the local machine time is closed enough it will say things seem fine, but if not he may test another server until someone agrees with the local time?
That's basically how NetTime already works.
Hello Mark Griffiths, Thanks for the answer. I hope it can be added in the near future as there isn't any native program for Windows that supports Network Time Security (NTS). I understand the explanation. My idea would be for the NetTime to have the option to test several servers to see what is the time that the SERVERS agree is the correct one, of course taking into account that one or more servers may not agree with what is the correct hour for several reasons, but these would be taking into account...
Hi Joao, I'll look at adding NTS support to a future version of NetTime. If configured with multiple servers, NetTime will already check with additional servers if there is a large time disparity between the current time on the server and time returned by the first server and then ignore any time that is too far out.
Support Network Time Security (NTS)
Thanks for the response, Mark. I thought that since it already has the digital time display, it might be easy to move it and enlarge it a bit. But I definitely see your point and agree that simple without bloat is best.
Although I understand the reason for wanting this, I don't think that it really fits into the core functionality for NetTime. I think that it would be better implemented as a separate program rather than bloating NetTime with a feature that most people don't need.
Large Display
Hi Rafael, Thanks for taking the time to make this suggestion. but I don't think that this fits within the scope of NetTime at all - sorry. IMHO, something like this could and should be done as a separate application. Are there no other programs out there that already do this?
This feature is mainly useful for people with visual impairments. used by many radio stations for this and other purposes. if you want to make your nettime really popular and recognized consider adding these resources.
Greenwich Time Signal (The Pips)
OK, can you try enabling debug level logging in NetTime and then do a sync on your IOT device both with and without the Internet being connected and then send the resulting log file to me.
Actually , I have created IOT device which take time from local system in which nettime software is running. But when there is no internet, device is not getting system time.
Just to clarify, it seems that you're configuring NetTime to sync to itself? Why are you wanting to do that? I can't think of any useful reason for wanting to do this.
HI I have installed nettime software in my local system. now I want to sync time with my local system. I have added localhost as hostname. It is working fine when i connect with internet. But when there is no internet connection, then it is giving error Could not update after clicking on update now button. And also it is showing nettime icon with red cross mark. Is there a way when there is no internet connection, i can get time from nettime?? Thanks
With advice from Mark I got this working by having Nettime closed and set to run in stand alone mode, then using the following command: "C:\Program Files (x86)\NetTime\Nettime.exe" /updateonce In the log I can see the update command was successful: 20/04/2022 09:45:01 Single Sync Successful. 20/04/2022 09:45:02 NetTime Closing
I think i will set nettimeservice to realtime.
I think that I know what's likely causing this issue. Do you see this problem if you set boinc to run at a lower priority, or set the NetTime service to run at a higher priority?
Nettime reports clock sync lost if cpu load is at 100% I run boinc.
Sorry for the delay in replying - it's better to just send me an email directly. It should be just a case of calling nettime.exe with the required parameter - you can try that from the command line.
how can run a sync from the command line I want to try this Added command line option to sync only once and then exit (/updateonce)
Hi Todd, Thanks for the update. I haven't run into that specific problem myself or even heard of anyone else running into it, so thanks for letting us all know.
This weeked I was running a test for something unrelated using a virtual machine (talking to a remote computer using Modbus) and discovered that when Windows locks the screen (and maybe possibly when the screens go into power saving mode), quite a bit of CPU time is taken away from the virtual machine. I had numerous reconnects of my software that otherwise would never happen. If I use a mouse jiggler on the computer to keep it awake, communication with my software using Modbus is flawless. I've...
Will do...found a way to log CPU usage to a file. Will check it out in the next couple of days.
OK, that rules out that possibility then. Would be good to see CPU usage graphs for the host and VM at the time that this happens...
I had that disabled (sync time with host). If you need any additional info or need me to test anything, let me know. Thanks again Mark...this very good tool is something we shouldn't need but Windows time sync is just plain terrible.
I have seen/heard of this happening on real systems as well as VMs where the CPU is overloaded. Usually, VMs have software installed which keeps the time synchronized with the host time. If the VM time falls behind for some reason, the VM software will fix it and NetTime would then detect that as time jumping forward...
Hi Mark, Thanks for the reply. Could it be something else since this happened consistently it seemed every few minutes over night on one VM (the other 3 did not have an issue)...I wouldn't think the CPUs would be very busy all night long. Maybe this is something that could mostly happen in a VM in which case I don't care. Thanks, Todd
Hi Todd, This can occur because of the way that the program detects time jumping forward - if the CPU is busy (on either the host or the VM) it can starve the program of CPU cycles and it will detect that as time jumping forward. I have got plans for a future update to the way that this works which should fix this problem.
I am evaluating NetTime for one of labs at work as opposed to using built-in tools in Windows 7 & 10 to update time every hour. I amtesting across 6 identical Win7 virtual machines (different IP addresses) and 2 identical Win10 machines (different IP address) using a NTP time source from Time Machines (a TM2000A). I have 2 of the machines(both Win7 Pro) get into a strange state where they update the time every couple minutes and state" Time jumped forward!" in the log viewer. I though t maybe the...
Hi, I am having a problem using v3.14 when I define 2 time sources by IP on a network which is not connected to the internet. Only one of these computers will ever be online at a time (the other is a cold backup). Using NetTime as client in this configuration returns "Inconsistent responses" which is explained in the FAQ. Is there a way I can "bypass" this and force NetTime to accept the response from any of the 2 servers it is able to access? btw - thanks for a handy tool!
So, I switched to a server that is closer to me, and I am getting better ping as well as better initial sync results it looks like. I don't know if that can affect it, but I am quite satisfied with the way things are working right now. Thanks for the replies. Great program.
So, I switched to a server thati s closer to me, and I am getting better ping as well as better initial sync results it looks like. I don't know if that can affect it, but I am quite satisfied with the way things are working right now. Thanks for the replies. Great program.
I'd say that the initial correction wasn't right - although it's possible that it's related to being the first sync since starting, I would say that it's more likely that the initial server that was used was just out by a bit. You would need to do more testing to confirm this one way or the other, but I don't think that adding a second sync 1 minute after starting would actually help (and there's the potential for causing overloading of servers in certain circumstances) If you're needing guaranteed...
Feature Request: Double sync after boot.
Oh, I guess you are right about that. Nevermind then, it was only an idea.
Although I understand why you might like to do this, it's actually a really bad idea - no NTP client should be syncing on a set interval like that because it could lead to load spikes on the NTP servers and cause it to all fall into a heap. Sorry!
Feature Request: Sync at the start of every hour.
The default servers are provided by the NTP Pool Project: https://www.ntppool.org/en/ I'm not aware of any issues with the NTP Pool in general. There are a couple of likely causes for the problems that you're seeing: It might be that you're having local network issues or a firewall that is sometimes blocking the NTP protocol. Another possibility is that in some parts of the world, there are only a handful or less of NTP servers - if there are only a few servers in your area and they're all down,...
Hi - All the servers are down as of this writing. This seems to happen occasionally but never this long. Is this project still being supported?
Just enable the option to "Allow other computers to sync to this computer" and ensure that you don't have a firewall blocking acces to UDP port 123 on your server.
How do I configure my network to use a server running Network Time as time source?
Last hour
As far as I recall, there isn't much difference between Delphi 5 and Delphi 7, so even though the latest version of NetTime is compiled with Delphi 7, there's a good chance that it should compile with Delphi 5 as well.
Which Delphi version for which source version?
Can you tell me what software is running on the server? Which other clients are working...
Kiss of death error
Hi John, Do you mean that the system doesn't automatically sync after waking up,...
I use Deep Freeze can not Sync time. Is there any way to fix it?
It would be helpful if you can provide the actual error message that you're getting....
Dear Mark, Thank you for your response. I have tried sync time from local machines...
That should be possible - I'll look at adding that in the next update.
Sorry about the delay in responding - it's generally better to email me through the...
Sync time after resume from hibernate
Can i use Nettime in commercial suite reporting changes to main project?
Can i use Nettime in commercial suite reporting changes to main project?
My understanding is that the system will get the time from the CMOS clock during...
If the system I setup to "Always provide time" has no access to external time sources,...
Yes, you can do that by enabling the option "Always provide time" on the system that...
Is it possible to use nettime setup as time server that syncs up to cmos clock only....
Excellent. Thanks Mark!
Yes, you can set the option "Always provide time" on that server and it will provide...
I pulled the source and found it. I'm trying to use NetTime to server up the time...
If you're running a custom shell like I am you cannot launch the GUI to configure...
Hi Gerrit, Sorry for the delay in responding - for some reason, I didn't get a notification...
NetTime works very well for me. There is a little thing about its behaviour at startup,...
That makes a lot of sense so I think I'll do it that way.
Hi Mark, Thank you for your reponse. If you want to secure this fonctionality, may...
That sounds like a reasonable idea to me - I'll most likely add that into the next...
The reason why it doesn't use an automatic stratum level is that the relevant RFC...
exit tray icon without stopping service
Stratum level for client
Yes, you can do that through the same configuration screen.
Thank you for the reply. One more thing: can I delete all the NTP servers included...
Yes, that should work. On the server PC, just click on the NetTime icon, then click...
Hello, I don´t saw any help on software website. I just want to make a question about...
Unfortunately, there isn't any easy way to do translations at this stage since the...
Hi, I loved this program because it does what it needs. I wonder if you need the...