Because there is a firewall on linux, I tested it with redis desktop manager, so I can't connect all the time.
Turn off the firewall:
systemctl stop firewalld.service #stop firewall
systemctl disable firewalld.service #prohibit firewall from starting
Then it works.