Is there a library for implementing service discovery and publishing via UPnP?
(I am trying to find some alternatives to JmDNS that while protocol-wise worked fine for our purposes, was highly unstable as a library, having an unacceptably bad tendency for deadlocking itself.)
http://4thline.org/projects/cling/
Open Source DLNA/UPnP stack, libraries, and tools for Java and Android developers
You could also try ohNet which includes Java bindings and control point / device stacks under a BSD license.
(Disclaimer: I have contributed to this project)
来源:https://stackoverflow.com/questions/3229665/upnp-library-for-java