Just realised I never actually wrote this up properly I’m rebuilding my fileserver so thought I should do it this time. 
so here we go:
Wsdd is a simple python script that automates the publishing of resources on a windows network using a Web Service Discovery Protocol client and host (GitHub - christgau/wsdd: A Web Service Discovery host daemon.).
It can be easily installed on CentOS and therefore nethserver by running a terminal and entering:
yum install wsdd
Although this installs it on nethserver it doesn’t convert it to an automated task, to do this it should be converted to a systemd service which will be automatically started and managed by systemd whenever your system starts up.
To do this list the networks on your system by typing:
“ip addr”
in a terminal identify the IP address you want to advertise on:
This will return something similar to the text below:
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:9a:41:8c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/23 brd 192.168.1.255 scope global dynamic ens160
valid_lft 2124sec preferred_lft 2124sec
inet6 fe80::250:56ff:fe9a:418c/64 scope link
valid_lft forever preferred_lft forever
From that I can see that the id of the NIC I wish to advertise on is ens160.
Now we know this create a new file “/etc/systemd/system/wsdd.service”
and enter the following text:
[Unit]
Description=Linux Web Service Discovery Script
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/wsdd -i ens160
TimeoutStartSec=0
[Install]
WantedBy=default.target
and save (make sure you’ve modified it for your NIC id!).
Then check system is all up to date, (either from nethserver software centre or by entering
yum update -y ).
now we need to enable the service do this by entering “systemctl enable wsdd.service”
This creates a symlink for our service in the default.target location so that it will be auto started on next boot.