title: How does chromecast connects to other devices?
body: <p>How do devices like Chromecast get discovered by other devices without connecting to the same local network. I am aware of protocols like ssdp, dial, and mdns, but all of those protocols require you to be connected to the same local network.</p>
  
  <p>For example, 
  when you plug in a chromecast and begin the initial setup, you somehow connect to that chromecast using another device (mac, android, iphone). Once you connect to that chromecast, then you start filling out wifi credentials so you can connect the chromecast to the network. Once that chromecast connects to the wifi, you can easily use any of the protocols above. </p>
  
  <p>So my question is, how do you connect to the chromecast with another device, without the chromecast knowing the local network? </p>