I'm trying to write an app that needs to discover the Chromecasts ip address. Since everything I've read indicates it uses SSDP, I have sent a UDP packet to the broadcast group address 188.8.131.52 on port 1900 as follows:
M-SEARCH * HTTP/1.1
everything on my network except my chromecast responds on port 1900. Does anyone know if this packet is not sufficient to get a Chromecast to reply, or if I need to listen on a different port to 1900? I'm really struggling to get anwhere with this and I can't figure out why!