Error Lan Kodi nexus etc



Hello, I have been stuck on Kodi Leia 18 for a long time because there is no way for Kodi to detect the PC where I have shared hard drives with files.
In Kodi Leia 18.9 everything works correctly but when changing to other versions like Matrix, etc. it gives me an error of “Invalid Argument” or “Operation not permitted” and “Cannot connect to the remote server”.
I have to say that the TVBox detects the Network and through the file explorer I can access the units but from Kodi I cannot.
All the permissions are there and the SMB is configured and it works correctly, it must be something from the new versions of Kodi and I don’t know what it could be.