How I Fixed Not Being Able to Remotely Connect to a Mac

As long as I’ve had my iMac (about six months), I’ve been unable to connect to it through either Back To My Mac, or even locally on the same network. Whenever I tried, Finder would spin for a second and then report “connection failed.” The solution for me ended up having something to do with the Apple ID associated with my user account, because what ended up fixing it was to go to the Users & Groups preference pane, click change, remove the Apple ID and re-add it. Afterwards I can connect remotely and locally. I couldn’t find this anywhere else as a solution to this problem, so I figured it might be helpful to someone else having the same problem.

Change User Apple ID