How to get real IP from user access

444 views
Skip to first unread message

Harry

unread,
Feb 9, 2017, 5:42:32 AM2/9/17
to docker-dev
Hi everyone,

Now I'm using Nginx and Node.js web applicaton on Docker container.
I want to store client IP address when user access certain webpage.
However, stored IP address is always same.

And this issue is discussed on forum as well but it seems not solved.
https://forums.docker.com/t/getting-real-ip-inside-container/17337/2

Thank you!!

Jérôme Petazzoni

unread,
Feb 11, 2017, 9:46:07 AM2/11/17
to Harry, docker-dev
Hi Harry,

I replied to the forum thread:

I hope this helps.

Cheers,

--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Harry

unread,
Feb 11, 2017, 2:49:16 PM2/11/17
to docker-dev, hiro...@gmail.com
Hi Jerome,

Thank you for your help!
This issue seems to occur on mac (I don't know on windows.) because it works well in linux.

2017年2月11日土曜日 15時46分07秒 UTC+1 Jérôme Petazzoni:
Hi Harry,

I replied to the forum thread:

I hope this helps.

Cheers,
On Thu, Feb 9, 2017 at 4:42 AM, Harry <hiro...@gmail.com> wrote:
Hi everyone,

Now I'm using Nginx and Node.js web applicaton on Docker container.
I want to store client IP address when user access certain webpage.
However, stored IP address is always same.

And this issue is discussed on forum as well but it seems not solved.
https://forums.docker.com/t/getting-real-ip-inside-container/17337/2

Thank you!!

--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jérôme Petazzoni

unread,
Feb 13, 2017, 4:28:11 PM2/13/17
to Harry, docker-dev
Docker Mac doesn't (at the moment) show the real source IP address.
For more details about Docker Mac's network stack, check this other forum post:

Cheers,

To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages