# ByPass MFA with IP address

**URL:** <https://community.auth0.com/t/bypass-mfa-with-ip-address/9624>\
**Category:** Get Help\
**Tags:** mfa\
**Created:** [March 1, 2018, 5:48pm UTC](https://community.auth0.com/t/bypass-mfa-with-ip-address/9624 "2018-03-01T17:48:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![it4](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/it4/32/8496_2.png) [@it4](https://community.auth0.com/u/it4)\
**Post date:** [March 1, 2018, 5:48pm UTC](https://community.auth0.com/t/bypass-mfa-with-ip-address/9624/1 "2018-03-01T17:48:35Z")

</div>

Hi. I have a javascript application with embedded Lock deployed on the server with IP 172.18.13.100. I want to create a rule which will check the ip address and bypass MFA with some certain IP.

In the Rule I get the IP address in the context object (context.request.ip). But when I check log the context.request.ip give me some strange ip not the “172.18.13.100”.

Could you please advise how can I get the IP of my application using embedded Lock in RULE?

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [March 28, 2018, 6:39pm UTC](https://community.auth0.com/t/bypass-mfa-with-ip-address/9624/3 "2018-03-28T18:39:42Z")

</div>

👋 @it4

Can you please confirm if I understood correctly, are you wanting to allow only users with a certain IP address to access your application? You could use the [IP Address Whitelist Rule](https://auth0.com/rules/ip-address-whitelist). If you are using the _Try this rule_ button, you’ll need to edit the context in line 11, ` "ip": "X.X.X.X",` to match the IP you whitelisted to see a successful try.

Please let me know if I misunderstood and if you able to share the [Rule](https://auth0.com/docs/rules/current) you are creating?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 17, 2018, 10:36am UTC](https://community.auth0.com/t/bypass-mfa-with-ip-address/9624/4 "2018-12-17T10:36:36Z")

</div>


