Can connect mongodb on server but not locally

I have installed MongoDB v4.4.29 on my AlmaLinux v8.10.0 STANDARD kvm server. I have enabled authentication, and I have created a root user with a password.
However, I can only connect to MongoDB from the server itself, not locally from my computer (through code and mongodb atlas both).
I’ve already:
set bindIp to 0.0.0.0 in mongod.conf
opened port 27017 in firewalld

tcp LISTEN 0 128 0.0.0.0:27017 0.0.0.0:* users:(("mongod",pid=<PROCESS_ID>,fd=<FD>))

27017/tcp (showing in firewall open ports lists)