Chromecast untrusted certificate

I'm not really familiair with how Chromecast works, but it might be something as simple as an incorrect hostname used by the Chromecast device? Or do you tell it to connect directly to the hostname mentioned earlier?