I had issues with rtpMIDI and the root cause seems to be that Z allocates two ip addresses via eth0.
ifconfig
doesn’t reveal it:
(venv) root@zynthian:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.20.152 netmask 255.255.255.0 broadcast 192.168.20.255
inet6 xxxx::xxx:xxxx:xxx:xxxx prefixlen 64 scopeid 0x20<link>
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 7614 bytes 720816 (703.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 708 bytes 88157 (86.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 104
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 25 bytes 5060 (4.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 5060 (4.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
But ip a
shows the second one
(venv) root@zynthian:~# ip a
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 noprefixroute
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.20.152/24 brd 192.168.20.255 scope global dynamic noprefixroute eth0
valid_lft 5964sec preferred_lft 5964sec
inet 192.168.20.100/24 brd 192.168.20.255 scope global secondary dynamic noprefixroute eth0
valid_lft 5969sec preferred_lft 5075sec
inet6 xxxx::xxx:xxxx:xxx:xxxx/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
The issue is that rtpMIDI announces itself via both IPs, the x.152 being the primary, but rtpMIDI only accepts connection on secondary IP x.100
Is there a reason for having two different IP addresses and can rtpMIDI be fixed to listen for incoming connections on both?