First, if you can connect when Allow from anywhere, then the cluster is working file. That’s good to know.
If you cannot connect when you white list your address, then probably you do not white list the correct address. If you have a VPN you must white list the address of the VPN that connects to the non-VPN part of the world. If you are behind a NAT network you must white list the address of the last gateway. You may try dig +short myip.opendns.com@resolver1.opendns.com to get your visible IP. The site https://whatismyipaddress.com/ may also provide you with this information.
I’m not using any VPN. I’m not using NAT network but I’m not sure if my ISP is using NAT network.
I’ve used the public address from ‘https://whatismyipaddress.com/’ but I couldn’t connect except 0.0.0.0 ‘Allow from anywhere’.
Yes the 112.199.xxx.xxx is the one you are interested in.
If that is the one that you’ve whitelisted and it doesn’t work, you should have a chat with your ISP.
The connecting IP would be in mongo logs. But not available in Frre/Shared Tiers
Feature unavailable in Free and Shared-Tier Clusters
This feature is not available for M0 (Free Tier), M2 , and M5 clusters. To learn more about which features are unavailable, see Atlas M0 (Free Tier), M2, and M5 Limitations.