Failed to connect to media-scanner. Is it running? (Ubuntu 20.04)

Hello,
(I have edited the original message)
I don’t have a firewall.
The server and the client are on the same machine (my laptop) and I have put the IP address 127.0.0.1 on the client.