If you've ever struggled to pair your phone with a Bluetooth speaker or set up a wireless printer, you know that it's often easier to connect to a server halfway around the world than to a gadget across the room. That's a problem as we increasingly use our phones to pay for stuff, unlock doors, and control everything from televisions to thermostats.