UPnP library for .Net

I am trying to play with UPnP. In particular, I am trying to browse the PS3 Media Server content library.

I tried upnp.dll (the COM library that comes with windows) and found it easy to use. I can easily detect devices and look at their services, but when I try to access the services of the media server, it throws an exception (other devices, such as my router and the Windows media player, work fine). A little bit about network searches showed that upnp.dll is not very well implemented, and other people have the same problem and have not found any solutions.

So, I was looking for an alternative and found Mono.Upnp . This looks promising, but I just can't get it to work at all.

I have seen mentions of the Intel UPnP SDK, but this seems deprecated and I cannot find the download package.

I'm at a loss. Is there an alternative to upnp.dll?

+7
networking upnp
source share
4 answers

I decided to bite the bullet and just drop mine. It is not that difficult. Simple udp + xml + soap.

This link helped me a lot:
http://www.upnp.org/download/UPnP_Device_Architecture_Generic_20000710.ppt

For details on the media server content directory, see: http://www.upnp.org/standardizeddcps/documents/ContentDirectory1.0.pdf

The source Mono.Upnp was also helpful.

I have no plans to make this open source, as it will not be the full version (I am doing a strict minimum for my project).

+5
source share

You can also consider ohNet . It is licensed by BSD and has ports for Windows, Linux, iOS, Android, and Mac, and language bindings for C ++, C #, Java, JavaScript, and C.

(I should note that I participated in the development of ohNet)

+5
source share

About the Intel UPnP SDK, it has recently been updated and renamed Developer Tools for UPnP . The most notable changes now include the source code for all tools and the code generator, the source is licensed under Apache 2.0, and IPv6 support has been added in several places.

See blog post 1 and blog post 2 from Intel Ylian Saint-hilaire .

+2
source share

It might be worth considering the relevant part of MediaPortal source code. In particular, the UPnP project may be useful.

+1
source share

All Articles