PDA

View Full Version : Problem with IP Discovery on Linux SDK



j-licht
05-17-2018, 08:39 AM
Hi

I've tested the Linux SDK a little bit and there is something that I didn't get to work.
Normally the source discovery works with mDNS, but as I see in the API
doku I can pass a IP Address to the searching process to ask.
So I add one line to the NDILIB_Find example:
NDI_find_create_desc.p_extra_ips =
When I connect with netcat to port 5960 of a source I got an xml with
source infos.
I tried to debug with strace -re connect and I only see a connect to
/var/run/dbus/system_bus_socket of the find process.

Do you have any ideas what could be the Problem?

bobthedino
05-21-2018, 05:01 AM
Hi, for the automatic discovery to work I found I had to make sure the Avahi service/daemon is running and also disable the Linux firewall. Have not really tried the "extra_ips" method, though.

livepad
05-22-2018, 09:32 AM
Hi

I've tested the Linux SDK a little bit and there is something that I didn't get to work.
Normally the source discovery works with mDNS, but as I see in the API
doku I can pass a IP Address to the searching process to ask.
So I add one line to the NDILIB_Find example:
NDI_find_create_desc.p_extra_ips =
When I connect with netcat to port 5960 of a source I got an xml with
source infos.
I tried to debug with strace -re connect and I only see a connect to
/var/run/dbus/system_bus_socket of the find process.

Do you have any ideas what could be the Problem?

extra_ips is not currently implemented on Mac and Linux.

j-licht
06-14-2018, 08:49 AM
Hi

I've got an email that there is the new version 3.5.
I teseted it with this version and it looks like it works.
The server only sends a response on port 5960 if the avahi daemon is running.

livepad
06-14-2018, 01:51 PM
Hi

I've got an email that there is the new version 3.5.
I teseted it with this version and it looks like it works.
The server only sends a response on port 5960 if the avahi daemon is running.

** Did you test whether extra_ips now works on Linux ?

The 5960 service should be hosted by whichever NDI source was launched first (and is still alive). If that source closes, another current sender should immediately take over. I dont think it has *anything* to do with Avahi at all (thats the whole point of it).

j-licht
06-14-2018, 03:56 PM
** Did you test whether extra_ips now works on Linux ?

The 5960 service should be hosted by whichever NDI source was launched first (and is still alive). If that source closes, another current sender should immediately take over. I dont think it has *anything* to do with Avahi at all (thats the whole point of it).

Yes I tested on a linux.

When the avahi doesn't run, I get no response when connect to the port with nc.
I play a video with ffmpeg and used the NDIlib_Find example to test the extra_ip.