where does the computer store the users location

  • 3 Replies
  • 173 Views
*

yotamarker

  • Trusty Member
  • *********
  • Terminator
  • *
  • 992
    • battle programming
where does the computer store the users location
« on: October 04, 2021, 03:16:45 pm »
so I built this java function to get the GMT of the computer, which requires the computer to know in which country/city it is

and I wonder how it has that info to begin with

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1582
    • contrast-zone
Re: where does the computer store the users location
« Reply #1 on: October 04, 2021, 04:13:37 pm »
On mobiles there should be a programming library to access the location (if user allows that).

On desktops, I believe, things are a bit trickier. There is no standard across operating systems that defines user location. On the contrary, that could be considered harmful, considering user privacy. But, there should be a way for detecting an IP address of a computer connected to the web. That IP address is connected to some web provider, and IP of the provider could be enough to narrow down the location of connected computer. I think this is what Google Search does. But on my desktop, it took several years, first to track down my country, then to track down my city, then to track down my location more precisely. But it was never showing my precise address (I bet not to scare me). I guess visiting some sites from Google Search and setting up my Google Mail account helped in tracking me down pretty much accurately.

But be careful, users usually don't like to give away their private info such are their exact location. I'm having this issue with Google. I'm uncomfortable for it knowing where I'm located. Not that I have to hide something, but it just feels wrong for the big brother watching me from the above. Yuck.
There exist some rules interwoven within this world. As much as it is a blessing, so much it is a curse.

*

Don Patrick

  • Trusty Member
  • ********
  • Replicant
  • *
  • 613
    • Artificial Detective
Re: where does the computer store the users location
« Reply #2 on: October 04, 2021, 04:35:03 pm »
The computer doesn't store the location. The computer stores the IP address, which can be traced to a location using an online API service. However, the accuracy greatly depends on the service and the user's network provider. Websites will often assume I live in the capital of my country because they can't pinpoint the exact town, or they get the wrong town because my provider happens to have its main server there. They do get the country right, because there's a country code in the IP address. There are Javascript functions to get the user's IP address, I assume Java also has such a function.
CO2 retains heat. More CO2 in the air = hotter climate.

*

WriterOfMinds

  • Trusty Member
  • *******
  • Starship Trooper
  • *
  • 438
    • WriterOfMinds Blog
Re: where does the computer store the users location
« Reply #3 on: October 04, 2021, 04:45:58 pm »
so I built this java function to get the GMT of the computer, which requires the computer to know in which country/city it is

In my experience, a desktop or laptop computer's time zone is not based on knowledge of its physical location. The time zone is chosen by the user during setup and can be changed arbitrarily thereafter. I have carried computers across time zone boundaries and connected them to the internet there without seeing the reported time change.

I think mobile devices can sometimes update the time zone by using geolocation.

Fully updated, internet-connected Windows 10 PCs provide local weather reports based on a location that you can set in the weather dashboard. It tries to detect your location automatically -- I suspect using the IP address, as described by others in the thread -- but you can also set it to something else.

 


New challenge: Online Turing test
by chattable (AI News )
October 09, 2021, 11:47:42 am
Spooky?
by MagnusWootton (AI News )
September 24, 2021, 11:19:09 am
OpenAI Shuts Down Chatbot Project To Prevent 'Possible Misuse'
by LOCKSUIT (AI News )
September 23, 2021, 04:07:25 pm
Beautiful new work robot.
by MagnusWootton (Robotics News)
September 15, 2021, 01:00:31 pm

Users Online

51 Guests, 0 Users

Most Online Today: 97. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles