-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSDP server does not respond to mutlicast M-SEARCH requests #76
Comments
Also, if this is the recommended way to get node-ssdp to respond to multicast M-SEARCH requests, then it's worth pointing out that it doesn't appear to add an appropriate time delay (as specified by the MX header).
|
I'm seeing the same thing, unless I use |
I am seeing the same thing for M-SEARCH sent from a WeMo Android app (but not from OSX node.js client). The only difference I can see in the packet is that the WeMo app is not using the multicast mac address (the Ethernet.Dst fields): The node-ssdp did not respond to this packet from the WeMo Android app:
But then normally responded to the following packet:
|
I was also having trouble with getting responses to m-search, among other things. For me, changing the default 'ssdpTtl' item in the server config to 2 as the spec suggests from 4, made the server respond. In your trace above look for 'MX:', that is what ssdpTtl will set. I also did have to turn on explicitSocketBind when I had more than one interface on win10.
|
Hi,
I am hoping to use node-ssdp server to advertise a custom UPnP-like device on my network. I've got it up and running and I can see that it is sending out multicast SSDP advertisements as expected. However, I also need it to be able to respond to multicast M-SEARCH requests too. Here, it falls down (or at least, there is no documentation explaining how to enable it).
My setup:
A typical M-SEARCH multicast request (sent from a client):
Doing some debugging, I can see that the ssdpServer is simply ignoring multicast packets.
Following the advice here it seems the solution is to bind the socket to the multicast port (i.e. 1900) only. I have been able to do this by specifying the sourcePort in the configuration parameters to be the same, i.e.:
The SSDP server now binds to
address: 'http://0.0.0.0:1900', ...
and is able to respond to multicast M-SEARCH requests properly with a unicast response to the originator of the M-SEARCH request.However, this leaves me with some questions:
Thanks, codersaur.
The text was updated successfully, but these errors were encountered: