3 ms·
Ask HN: How does a Mac determine your location during set-up?
A friend just brought me a Macbook Air (2019) to Greece where I am currently located. The computer came from another European country and was reset to factory settings before the trip. When I started the setup, Greece was pre-selected on the country/region picker before even connecting the computer to a network. How is this possible?
- giuliomagnifico 4y agoBecause the nearby Wi-Fi stations transmit on which country they’re configured also if you are not connected to them. Try to boot it in the middle of a countryside with your phone the Wi-Fi and Bluetooth disabled and it should display the default country (I think is USA?! I don’t remember). This is also the same cause why Apple is using Wi-Fi and Bluetooth with the GPS to retrieve your precise location. And this is also you should turn OFF (not tap on the icon from the control center) the Wi-Fi and Bluetooth: your privacy.
- beardyw 4y ago> Because the nearby Wi-Fi stations transmit on which country they’re configured That's news to me. Where is that information encoded? As far as I know all you can get is the SSID and Mac address. I am intrigued.
- giuliomagnifico 4y agoThe router sends continuously messages in order to advise/tell to the clients “Ehy, I’m the XYZ Wi-Fi SSID, would you join me?” And in these messages -packets- are stored these informations. Read this: https://en.wikipedia.org/wiki/Wi-Fi_positioning_system https://en.wikipedia.org/wiki/Wi-Fi_positioning_system
- beardyw 4y agoYes that is how mobile phones do without GPS, but wouldn't that mean they would need the entire Mac address database for the world if they had no internet connection?
- giuliomagnifico 4y agoThe country code is included in the packet.
- toast0 4y agoThe beacon frame optionally includes country information, see this reference under country: https://mrncciew.com/2014/10/08/802-11-mgmt-beacon-frame/ https://mrncciew.com/2014/10/08/802-11-mgmt-beacon-frame/ If enough nearby access points include consistent information, seems like a reasonable place to start.
- verdverm 4y agoYour IP address or other networking introspection most likely