# IP Restriction - restricting client's real IP

**URL:** <https://discuss.konghq.com/t/ip-restriction-restricting-clients-real-ip/9559>\
**Category:** Questions\
**Created:** [December 27, 2021, 3:48pm UTC](https://discuss.konghq.com/t/ip-restriction-restricting-clients-real-ip/9559 "2021-12-27T15:48:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwstu\_97](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@rwstu\_97](https://discuss.konghq.com/u/rwstu_97)\
**Post date:** [December 27, 2021, 3:48pm UTC](https://discuss.konghq.com/t/ip-restriction-restricting-clients-real-ip/9559/1 "2021-12-27T15:48:06Z")

</div>

Hi. I’m new to KONG and its plugins. I’ve been trying to set up IP restriction plugin so that it allows only my machine’s IP. Kong is running on a remote server and I have to use tunnelling to access it. What I’ve noticed is, the whitelist works fine when I use remote server’s IP but not when I whitelist my machine’s IP. How to achieve this?

---

<div class="post-metadata">

**Author:** ![joedas](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@joedas](https://discuss.konghq.com/u/joedas)\
**Post date:** [December 27, 2021, 8:47pm UTC](https://discuss.konghq.com/t/ip-restriction-restricting-clients-real-ip/9559/2 "2021-12-27T20:47:30Z")

</div>

Hi rwstu\_97,

Welcome! I have included an article below that describes how the IP is determined and the required changes to preserve the client IP.

[https://support.konghq.com/support/s/article/How-does-Kong-determine-the-Client-IP-for-the-IP-Restriction-Plugin](https://support.konghq.com/support/s/article/How-does-Kong-determine-the-Client-IP-for-the-IP-Restriction-Plugin)
