Can I restrict user's access on a certain IP?
When you create a user then you can specify Authentication Restrictions
Would be like this:
use admin
db.createUser(
   {
     user: &quot;dbuser&quot;,
     pwd: &quot;password&quot;
     roles: [ { role: &quot;readWrite&quot;, db: &quot;reporting&quot; } ],
     authenticationRestrictions: [ {
        clientSource: [&quot;192.0.2.0&quot;],
        serverAddress: [&quot;198.51.100.0&quot;]
     } ]
   }
)

But for me it is not clear, if you are looking for this.