As described;
Now I want to get timezone by IP address in Java, but I can't find anything really helpful with my ask;
If u have a better way to solve this pls share ur thoughts with me;
Asked
Active
Viewed 99 times
-2

OGtwelve
- 46
- 4
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 28 '22 at 03:13
-
Does this answer your question? [How to get Time Zone through IP Address in JAVA](https://stackoverflow.com/questions/13968483/how-to-get-time-zone-through-ip-address-in-java)? Also related: [How to get Time Zone through IP Address in PHP \[duplicate\]](https://stackoverflow.com/questions/743505/how-to-get-time-zone-through-ip-address-in-php). Search fore more. – Ole V.V. Sep 28 '22 at 05:29
1 Answers
2
You can use the open api
This will give you the timezone for the IP address. But remember, this is public IP address.

Rajesh
- 104
- 1
- 4
-
Funnily this link gives me partly different info for my own IP address: https://ipgeolocation.io/timezone-api.html. But the same and correct time zone. – Ole V.V. Sep 28 '22 at 05:22
-
Yes because the IP address is the public IP which will eventually be very few for a country. So many will be getting same IP info across country using the same ISP in zone. – Rajesh Sep 29 '22 at 13:25