There are so many ways to get in and out that I will not claim how they did it. The Nest cam does use a cloud service so that could be how it's done. I'm not going to write anything technical here. No code, no Internet protocol or router talk.

Simply the camera has a link to the cloud and the app uses that.