Really Simple Service Discovery Protocol - a 100% .Net implementation of the SSDP protocol for publishing custom/basic devices, and discovering all device types on a network.
I have made a c# application that expose a WCF service and I would like to advertise that service in Windows using SSDP.
My Question: - what do I have to do so that it becomes visible in the Network Explorer (in the green circle in the attached screenshot) (similar to the 2 synology NAS's)
Here is what I currently do :
From the examples, I was able to make the server example work:
// Create the device(s) we want to publish.
var url = new Uri("http://192.168.0.245:8181/");
var rootDevice = new SsdpRootDevice()
{
DeviceType = "Basic",
FriendlyName = "Sample RSSDP Device",
Manufacturer = "RSSDP",
ManufacturerUrl = new Uri("https://github.com/Yortw/RSSDP"),
ModelDescription = "Test Device from RSSDP Console App",
ModelName = "RSSDP Sample Device",
ModelNumber = "123",
ModelUrl = new Uri("https://github.com/Yortw/RSSDP"),
SerialNumber = "123",
CacheLifetime = TimeSpan.FromMinutes(30),
PresentationUrl = new Uri("http://192.168.0.245:8080/unit15/v1.0/"),
Uuid = System.Guid.NewGuid().ToString(),
UrlBase = url
};
var service = new SsdpService()
{
ServiceType = "Dummy",
Uuid = System.Guid.NewGuid().ToString(),
ServiceTypeNamespace = "",
ControlUrl = new Uri("/dummy", UriKind.Relative),
EventSubUrl = new Uri("/dummy", UriKind.Relative),
ScpdUrl = new Uri("/ssdp/dummy.xml", UriKind.Relative)
};
rootDevice.AddService(service);
rootDevice.Location = new Uri(url, "ddd");
Hi
I have made a c# application that expose a WCF service and I would like to advertise that service in Windows using SSDP.
My Question: - what do I have to do so that it becomes visible in the Network Explorer (in the green circle in the attached screenshot) (similar to the 2 synology NAS's)
Here is what I currently do :
From the examples, I was able to make the server example work:
The HttpListener serves the above document just fine on http://192.168.0.245:8181/ddd.
Thanks!