I had exactly the same problem, I think it is related to the default firewall of libreelec (https://forum.kodi.tv/showthread.php?tid=146242). I temporarily disabled it and I worked right away. If you still want a firewall, you can customize it through iptable rules (https://wiki.libreelec.tv/installation/security#firewall).