tiny-ssdp
tiny-ssdp copied to clipboard
Unable to start
Hi, I've compiled the source on a Raspberry Pi successfully and started the daemon. In the /var/log/daemon.log file there are entries showing it needed to create a default configuration file and then entries stating: "Fatal error creating or binding datagram socket". Is there anything I need to configure to get this working? I really need an SSDP service running that can advertise itself so Windows can see the device in the network section under File Explorer.
Kind Regards,
Dan Riches
Hi,
Sorry just found your issue.
I guess you used sudo
to start the daemon and therefore had relevant rights.
Is their any process already using the port maybe?
Could you try to run this command to see if port 1900 is already in use:
sudo netstat -l -u -p | grep 1900
Regards, Julien
Hi Julien,
I've now got back to getting this working and I've compiled and run the ssdp service which shows as using address 0.0.0.0:1900 which I guess is port 1900 bound to all ports? The problem is that it's not showing up in windows network explorer at all whereas my ESP8266 modules that use SSDP work perfectly. Any ideas on what I can do?
Thanks,
Dan
Hi Dan,
The line you see means a program is indeed listening on port 1900 – should be on UDP protocol if tiny-ssdp is running – on all device networks. Normally the PID of the service should be shown on the right and let you confirm it is the tiny-ssdp deamon that is well running (and not another program from the distribution).
On top of SSDP protocol, you need to implement basic services of UPnP, that goes on top of SSDP. I think this is why you see ESP8266 on Windows Network Explorer – because some the UPnP service are already implemented – while on your Raspberry PI only the SSDP protocol is here thanks to tiny-ssdp.
You can find a skeleton of a basic UPnP service on /www/service/ if you used the .deb package to deploy tiny-ssdp. If you compiled it yourself, it can be found in usr/lib/tiny-ssdp/www/service/ folder.
I have just noticed I did not write any documentation, so this might be tricky to do a first service.
By chance, are you familiar with Wireshark tool? If you are able to make an IP-filtered capture on the whole UPnP detection process of ESP8266 on your Windows, I can analyze it and try to implement the same basic announcement service on tiny-ssdp. Let me know if I can assist on this procedure (I can write you down a documentation on how to proceed).
Julien