5

My Institute has a server which has a IP address 192.168.1.xxx I want to set my sync server to that IP address. All other time sync servers are blocked so I am asking this. If it is possible then please reply.

In Android there is no option to manually add server address like it is there in windows time setting.

7

Android has no option for NTP syncing – time synchronization takes place by other means (via your mobile carrier, see Where time information is received from the network? and What is the synchronization source for the internal clock). To enable time synchronization via NTP, you can e.g. use ClockSync – but without root powers, 3rd party tools are pretty much limited, as they're not allowed for "fine adjustment": the "finest interval" they can adjust by is 30 seconds.

For more details, be welcome to see:

To make these sources easier to find, I've just linked them to our clock tag-wiki.

12
  • So basically, the answer is no? I want my phone to connect to that IP address and get the time. I think there are no such apps till now. Btw thanks for your reply @lzzy. I will keep on searching more. Feb 2 '16 at 13:20
  • Basically the answer is "no, not without external tools, and even then with root only". Updating the time only when the difference is 30s or more IMHO doesn't count ;)
    – Izzy
    Feb 2 '16 at 14:06
  • Windows also use NTP servers to sync time? ex: time.windows.com, time.nist.gov Feb 2 '16 at 17:19
  • Who? This is Android.SE – I've got no idea what Windows does (my windows let in light at daytime, when open fresh air, in summer sometimes insects, but they don't sync time ;) My Linux machine uses NTP as well, yes.
    – Izzy
    Feb 2 '16 at 17:22
  • :) I was asking that because I am rooted and still ClockSync can't able to connect to my server when I gave the IP address. But my windows machine can sync with that IP. So I think IP based syncing is not possible. Feb 2 '16 at 17:30
1

Anyone Still having this problem you can use ADB shell to change your device ntp-server.

$ adb shell settings put global ntp_server asia.pool.ntp.org
# test
$ adb shell settings get global ntp_server 
> asia.pool.ntp.org

You will need adb exe for this. replace the "asia.pool.ntp.org" with your server IP address. please refer to this link for more info Github

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.