Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
EnTerr
Roku Guru

Re: SSDP Discovery Not Working

Is "AP isolation" or some other carp "on" in the router?
What's the router brand/model?
See also http://diydeveloper.io/tech/2014/06/12/ ... -settings/
0 Kudos
belltown
Roku Guru

Re: SSDP Discovery Not Working

"LCubed" wrote:
So I made some changes, without any good results. I set the TTL in the MulticastSocket to 6. I also changed the datagram packet to:

M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Content-Length: 0
Man: "ssdp:discover"
MX: 6
ST: roku:ecp

A carriage return, line-feed follow each line with an additional set at the end of the string.


I don't think you need the Content-Length in there. Apart from that, it looks like a valid M-SEARCH request.

I encountered similar problems. In my case, sometimes the SSDP discovery worked, sometimes it didn't, sometimes it would only detect one Roku on the network when there were really two. This happened whether from the code running on my laptop or from the Roku IOS app. I assumed there was some router weirdness going on, but never got to the bottom of it. I changed my code to issue multiple M-SEARCH requests; usually between all the requests that would detect all the Rokus. I also did a scan of all the devices on the subnet to check which ones were Rokus. That worked 100% of the time even if the SSDP requests failed.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.