Settings for spotify connect

I don’t know if there are any default firewall rules for LAN area but I would check that at first. You need to be sure that UPnP or DLNA is not blocked.

or maybe this could help - Chromecast disappears after few hours