# Http-in get Request IP/Address

**URL:** <https://discourse.nodered.org/t/http-in-get-request-ip-address/3067>\
**Category:** General\
**Created:** [12 September 2018 06:16 UTC](https://discourse.nodered.org/t/http-in-get-request-ip-address/3067 "2018-09-12T06:16:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdomod](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gdomod](https://discourse.nodered.org/u/gdomod)\
**Post date:** [12 September 2018 06:16 UTC](https://discourse.nodered.org/t/http-in-get-request-ip-address/3067/1 "2018-09-12T06:16:24Z")

</div>

Hi there,

its possible to get the client ip address at request ?

i read that http-in based on expressjs but there is no msg.req.ip  
can anybody help me please

---

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [12 September 2018 14:06 UTC](https://discourse.nodered.org/t/http-in-get-request-ip-address/3067/2 "2018-09-12T14:06:32Z")

</div>

You might want to check the `msg.req.headers` object (e.g. mine has a field called `x-real-ip`), but in my case that was set by an nginx reverse proxy. For a standalone instance, you probably won't have that information available.

---

<div class="post-metadata">

**Author:** ![T0T4R4](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/t0t4r4/32/10850_2.png) [@T0T4R4](https://discourse.nodered.org/u/T0T4R4)\
**Post date:** [19 July 2020 23:25 UTC](https://discourse.nodered.org/t/http-in-get-request-ip-address/3067/3 "2020-07-19T23:25:15Z")

</div>

How come a simple information as this is not available from this node ?

I have multiple clients in the LAN (hence no need for a rev proxy like nginx), and would like to log the source IP coming onto my node-red server (without having to import the node-red-contrib-http-logger because it is said to be used only for debugging purpose and it's indeed a bit overhead for what I need)

something like msg.req.sourceIP would be handy ....

---

<div class="post-metadata">

**Author:** ![Inklud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/inklud/32/33834_2.png) [@Inklud](https://discourse.nodered.org/u/Inklud)\
**Post date:** [17 December 2020 14:29 UTC](https://discourse.nodered.org/t/http-in-get-request-ip-address/3067/4 "2020-12-17T14:29:00Z")

</div>

Go get client ip address at request if you ar using nginx reverse proxy,  
you must add something like the following to your NGINX Proxy Configuration:

```auto
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

```

In this case the client ip address will appear here in your msg.req.headers as X-Real-IP.
