ssdp

SSDP and interface IP address

与世无争的帅哥 提交于 2020-01-01 14:33:13
问题 I'm writing a UPnP AV/DLNA DMS which needs to send and receive SSDP messages. In response to some M-SEARCH packets I need to send a reply with the URL of a resource (in this case a HTTP server), which I've chosen to bind to INADDR_ANY ( 0.0.0.0 ). Of course this address is meaningless to the sender of the M-SEARCH packet: The address of the interface on which the M-SEARCH was received is most appropriate. How can I determine the appropriate address to send in the reply packet? Some ideas I've

SSDP Search in Windows Phone 8

被刻印的时光 ゝ 提交于 2019-12-23 02:16:43
问题 I'm new at SSDP/UPNP/Sockets and all that jazz. I'm playing around with it a bit and I just want to see what a generic SSDP search on my network will bring up. Using this SSDP Sniffer app, I get a lot of results so I'm attempting to recreate this. I'm using the following code, which I've found various versions of, but all the tweaking I do doesn't appear to bring back any results. I pretty much at a loss here and would appreciate any guidance. thanks! private const string SSDP_IP = "239.255

UPnP Multicast: missing answers from M-SEARCH (Discovery)

↘锁芯ラ 提交于 2019-12-17 18:37:49
问题 I created a small program to test UPnP Multicast (Visual C# 2010 Express, running on Windows 7 Professional 64 Bit). I can receive the UPnP NOTIFY Messages from UPnP Devices in my Network. But when i send the M-SEARCH Message, i get no Answers. I have tested the same code on a iOS environment (Monotouch for iOS, running on a iPhone simulator on a Mac). There it runs fine and i get all the search responses from my UPnP devices. I can also see the M-SEARCH message from my windows program. It

Search devices on all networks

旧城冷巷雨未停 提交于 2019-12-11 02:54:30
问题 I want to implement a code through which i can list-up upnp compliant media renderer devices connected on network. I googled for this and found following code on twisted website When 2 networks(ethernet and wifi) are connected on my machine, it lists up devices of only one network. code from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor import re class MulticastPingPong(DatagramProtocol): XMLNS = "{urn:schemas-upnp-org:device-1-0}" def startProtocol

SSDP and interface IP address

最后都变了- 提交于 2019-12-04 14:28:53
I'm writing a UPnP AV / DLNA DMS which needs to send and receive SSDP messages. In response to some M-SEARCH packets I need to send a reply with the URL of a resource (in this case a HTTP server), which I've chosen to bind to INADDR_ANY ( 0.0.0.0 ). Of course this address is meaningless to the sender of the M-SEARCH packet: The address of the interface on which the M-SEARCH was received is most appropriate. How can I determine the appropriate address to send in the reply packet? Some ideas I've considered are: Binding a different receiver to each socket. When a receiver gets an M-SEARCH packet

Can I use IdUDPClient to send M-SEARCH request?

为君一笑 提交于 2019-12-01 05:54:57
There are few uPNP devices in my network. I am trying to send M-SEARCH request to the network and hope receiving some responses from it. This is what I am trying: var sIP, sOut: string; iPort: Word; S: TStringBuilder; begin S := TStringBuilder.Create; try S.Append('M-SEARCH * HTTP/1.1').AppendLine .Append('HOST: 239.255.255.250:1900').AppendLine .Append('MAN: "ssdp:discover"').AppendLine .Append('MX: 10').AppendLine .Append('ST: ssdp:all').AppendLine; IdUDPClient1.ReceiveTimeout := 3000; IdUDPClient1.Broadcast(S.ToString, 1900, '239.255.255.250'); sOut := IdUDPClient1.ReceiveString(sIP, iPort)

Can I use IdUDPClient to send M-SEARCH request?

♀尐吖头ヾ 提交于 2019-12-01 04:45:43
问题 There are few uPNP devices in my network. I am trying to send M-SEARCH request to the network and hope receiving some responses from it. This is what I am trying: var sIP, sOut: string; iPort: Word; S: TStringBuilder; begin S := TStringBuilder.Create; try S.Append('M-SEARCH * HTTP/1.1').AppendLine .Append('HOST: 239.255.255.250:1900').AppendLine .Append('MAN: "ssdp:discover"').AppendLine .Append('MX: 10').AppendLine .Append('ST: ssdp:all').AppendLine; IdUDPClient1.ReceiveTimeout := 3000;

UPnP Multicast: missing answers from M-SEARCH (Discovery)

爷,独闯天下 提交于 2019-11-28 08:30:33
I created a small program to test UPnP Multicast (Visual C# 2010 Express, running on Windows 7 Professional 64 Bit). I can receive the UPnP NOTIFY Messages from UPnP Devices in my Network. But when i send the M-SEARCH Message, i get no Answers. I have tested the same code on a iOS environment (Monotouch for iOS, running on a iPhone simulator on a Mac). There it runs fine and i get all the search responses from my UPnP devices. I can also see the M-SEARCH message from my windows program. It looks like Windows (or a Firewall?) is hiding the search responses. Any idea? Here is the code: