Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP of device
12-10-2015, 09:38 AM
Post: #1
IP of device
Hello,

Is there any posibility to get IP of device or some other resource (for example DeviceDescription link)?
Find all posts by this user
12-10-2015, 09:50 AM
Post: #2
RE: IP of device
(12-10-2015 09:38 AM)SiMet Wrote:  Hello,

Is there any posibility to get IP of device or some other resource (for example DeviceDescription link)?

Using a CpDevice discovered by one of the UPnP device lists, calling GetAttribute for key "Upnp.DeviceXml" will return the device description. You can parse any details from it then.

If all you want is an IP address, you could read the "Upnp.Location" attribute. This returns a url so will be much easier to parse than the entire device description.
Find all posts by this user
12-10-2015, 09:56 AM
Post: #3
RE: IP of device
In DeviceXml there is no IP of device.
However, I found this in Upnp.Location

thank you so much Smile
Find all posts by this user


Forum Jump: