Apple watch unlock not reliable if Mac on 5ghz wifi

I'm on macOS Sierra 10.12.3, iOS 10.12.1, and watchOS 3.1.3 (basically the latest/greatest, all released today). However the problem I'm seeing was also there with macOS 10.12.2, iOS 10.12 and watchOS 3.1.1 so it's not new with today's releases.


What I observed was that very often (typically after my 2015 MacBook had been sleeping for at least a few minutes since last used) auto unlock using my watch almost never worked. I'd wake the Mac typically by opening the lid, I'd get the message that the Mac was trying auto-unlock, and after maybe 10 seconds of watching a spinning cursor I'd get the password prompt. This seems to be a pretty common problem from what I've seen on these forums.


I read up on how auto unlock works. Basically what's going on is that the feature leverages the 2.4ghz wifi chip in the watch to measure the "time of flight" between the watch and Mac. The Mac pings the watch over Bluetooth first, and then the watch and Mac communicate over 2.4ghz wifi directly with each other (not via your router at all because that would defeat the purpose of this) and measure how long these communications take. If the communication is fast enough, the Mac can assume that the watch is physically close enough to safely unlock the Mac.


My home network wifi has two SSIDs, one for 5ghz and the other for 2.4ghz, so I could tell easily which computer uses which. I noticed that when my MacBook was using the 5ghz connection, auto unlock with the watch was very unreliable. However, when I switched the Mac to use 2.4ghz wifi instead, auto unlock became 100% reliable.


I suspect what's going on here is that when you wake the Mac and it's primary network conneciton is over 5ghz, it's not waking up the 2.4ghz radio early enough in the wakeup process (it may be thinking that it doesn't need the 2.4 ghz radio), and as a result the communications with the watch take too long, and login fails. I'm pretty sure this is a regression as I recall that in earlier builds of Sierra (10.12.1?) I didn't have this problem.


It's easy to test this, if you have 2.4 and 5ghz networks with different SSIDs, you can force the Mac to connect to the 2.4ghz one first by dragging the 2.4ghz SSID to an earlier slot than the 5ghz SSID in the network preferences (or just remove the 5ghz SSID entirely and leave only the 2.4ghz one) I'd love to hear if this makes anyone else's auto unlock with the watch work more reliably. While using 2.4ghz wifi on the Mac lets this feature work, it's really limiting bandwidth wise, so if others are having the same issue, Apple should try to fix this one....

Apple Watch, watchOS 3.1.3, macOS Sierra 10.12.3, iOS 10.12.1

Posted on Jan 24, 2017 1:42 AM

Reply
9 replies

Feb 7, 2017 2:38 PM in response to danoply

See my other post here as well. Unlocking my Mac with my Apple Watch still requires a password


It's really difficult for me to change my home network to have one SSID without breaking a lot of things. However my work network uses the same SSID for both 2.4 and 5ghz and unlock works fine there.


One other question for you: what type of router do you have? Just looking for any commonalities.

Feb 7, 2017 2:31 PM in response to ohayobear

Thank you for figuring this out! I've spent several hours troubleshooting this on my 2014 Mac mini to no avail. I'm on the latest versions of MacOS, iOS and WatchOS (same as you).


Looking in the log I've been getting:

271 sharingd: [com.apple.sharing.AutoUnlock] Client ack'd did fail with error: Error Domain=SFAutoUnlockErrorDomain Code=137 "Ranging Timeout: Results Not Returned" UserInfo={NSLocalizedDescription=Ranging Timeout: Results Not Returned}

which wasn't terribly helpful in figuring out the actual problem (I thought maybe my watch was too far away from the mini or there was interference of some kind. No amount of rebooting, signing in and out of iCloud, etc. made any difference. But then I found a link to your post and tried switching to the 2.4GHz SSID of my WiFi network-->Boom, auto-unlock worked right away. Switched back to 5GHz-->timed out. I've repeated this several times now with the same result each time.


So it's great to be able to get this working, but obviously I'd rather not have to use the slower 2.4GHz band on my Mac. What I'm wondering now is how/if this behavior differs if your 2.4/5GHz SSIDs are named the same. I have different names for mine which I had heard was best practice. But I've also seen people use the same SSID name for both networks without major problems. Have you tried that? If I get some more time this week I might give it a shot and see if it makes any difference.


Thank you again for figuring it out and posting such a detailed write-up!

Feb 7, 2017 3:10 PM in response to ohayobear

Yeah that other thread is how I found this one haha.


I use PFSense running in a virtual machine as my router. APs are Netgear Prosafe WAC720's.


I'll see if I can rename my SSIDs to the same name here at some point.


Edit: I wonder if this has anything to do with the fact that the watch only has a 2.4GHz radio. From what I read, the watch will inherit the SSID your phone is on. But what if the SSID your phone is on is 5GHz only? I assume in that case the watch doesn't join any WiFi network and only relies on the bluetooth connection. Whereas if both 5GHz and 2.4GHz networks use the same SSID/password, I would guess the watch would be able to join the 2.4GHz radio while the phone stays on the 5GHz band.


No idea if that is relevant but thought I would throw it out there.

Feb 7, 2017 5:23 PM in response to danoply

At least on my home network that didn't help @danoply. It is possible to make your watch join a 2.4ghz network. The easiest way I found to do that was to join a 2.4ghz network on your phone, wait a few minutes for the 2.4ghz SSID/password to sync to the watch, then turn off bluetooth on the phone temporarily. If you swipe up on the watchface you'll then see I green cloud icon, which means that the watch is connecting over 2.4ghz wifi rather than bluetooth. (you can likely verify from your router that the watch is connecting) I then turned bluetooth back on on the phone (you need that for normal watch functionality), but the problem is still there. as long as the Mac itself is on 5ghz wifi, unlock times out.


it's interesting, my router is also an open source one (OpenWRT) with Atheros QCA9880 chipset for the 5ghz wifi. Maybe Apple has an allergy to open source routers :-)

Feb 7, 2017 5:44 PM in response to ohayobear

Right you are. I made sure my watch was on the 2.4GHz SSID and auto unlock still timed out. I see now you discussed that in your posts in the other thread.


You mentioned you don't have a problem at work. Do you happen to know if the access point(s)/router(s) used there are 802.11ac? I wonder if it happens with 802.11n gear (which is also capable of 5GHz and 2.4GHz).

Mar 3, 2017 2:46 PM in response to ohayobear

I had similar issue with MacPro. Turned out after I read all answers below about measuring response time that 2.4GHz or 5GHz did not do much of the difference for me.

I run the command provided which is very useful, got following back :


2017-03-02 19:37:34.924096-0500 0x4228e Default 0x0 394 sharingd: [com.apple.sharing.AutoUnlock] Client ack'd did fail with error: Error Domain=SFAutoUnlockErrorDomain Code=137 "Ranging Timeout: Results Not Returned" UserInfo={NSLocalizedDescription=Ranging Timeout: Results Not Returned}


Basically, too slow to get results on time.

I tried to change AirPort Extreme to present 5GHz SID separately and connect only to 2.4GHz. Not much luck here. However what really made difference is cleanup of cables and wires (HDMI, USB, Network, Power etc) which I had between me and MacPro (it sits very close on the little table behind my desk). After all of cables were moved aside communication works pretty stable. So, in case you have MacPRO and got issue authenticating with iWatch, you might need to make sure there are not many active cables between you and your machine.

Apr 26, 2017 6:11 PM in response to zolegus

zolegus I could hug you. This solved my Auto-Unlock Issue on the Apple Watch.


So I too am on a 5 ghz network. I switched to 2.4 and was still getting the same result. One thing you said made me think ... Na it couldn't be that but what the **** I will try it.


"After all of cables were moved aside communication works pretty stable. So, in case you have MacPRO and got issue authenticating with iWatch, you might need to make sure there are not many active cables between you and your machine."


You see I have an early 2015 MBP that I use on this monitor stand - https://www.amazon.com/Allsop-Monitor-18-Inch-platform-keyboard/dp/B003M2YDE2 and I recently placed an External WD HD underneath on its side for occasional Storage. The moment I moved the External HD EVERYTHING just worked. Be aware those having auto unlock problems. Look for interference around your Mac.


I hope this helps someone else with this Auto-Unlock Issue on the Apple Watch.

May 16, 2017 11:10 PM in response to Bats_7

Holy crap - that worked for me too! I had three WD hard drives all plugged into a hub velcroed to my laptop mount, along with three other active USB3 cables (which are known to cause interference on 2.4GHz), and once I moved them all away from the 2014 rMBP and behind my stereo, unlock with the watch works every time!


The only catch is that it doesn't work in clamshell mode, which is how I prefer to work, with my external monitor only. So now I'll just leave the MacBook open, for unlock with watch to work every time.


Note: I'm plugged into gigabit ethernet via thunderbolt (highest network priority), and also on a 5GHz WiFi connection on the rMBP, and this solution still works. I did connect to the 2.4GHz network once on my iPhone, then disabled bluetooth, and waited for the watch to learn that 2.4GHz network; however, after setting that up, I'm leaving everything else on 5GHz, and it was just the USB3 cables causing issues for me.


So glad to have figured this out!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Apple watch unlock not reliable if Mac on 5ghz wifi

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.