# load balancing based on IP

**URL:** <https://community.gatling.io/t/load-balancing-based-on-ip/3115>\
**Category:** Gatling (Open-Source)\
**Created:** [June 30, 2016, 3:41pm UTC](https://community.gatling.io/t/load-balancing-based-on-ip/3115 "2016-06-30T15:41:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Holmes](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Dan\_Holmes](https://community.gatling.io/u/Dan_Holmes)\
**Post date:** [June 30, 2016, 3:41pm UTC](https://community.gatling.io/t/load-balancing-based-on-ip/3115/1 "2016-06-30T15:41:49Z")

</div>

if my load balancer (nginx) is set to load balance based on origin IP, how can i make my gatling script fake the origin IP based on the user?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 30, 2016, 3:48pm UTC](https://community.gatling.io/t/load-balancing-based-on-ip/3115/2 "2016-06-30T15:48:32Z")

</div>

Either scale out, or use [IP aliasing](http://gatling.io/docs/2.2.2/http/http_protocol.html#local-address) (only possible in a private network).
