By remote, do you mean a different machine on the same network or a different machine from another location?
If a different machine on the same network, it should work easily.
As for the other case, you need to connect using the public IP address of the server. That is not necessarily the IP address of the machine running mongod, if behind a NAT router or VPN. You may find the current public IP using https://www.whatismyip.com/.