K
K
KBBS2021-04-23 07:34:03
Windows
KBBS, 2021-04-23 07:34:03

How to get the real ip of the client in a container running Docker-Desktop?

Good afternoon.
I have Windows 10 with Docker-Desktop installed.
For any requests inside the container, we get 172.17.0.1 as the client's ip.
That is, for example, there is a machine with ip 1.2.3.4. If we knock on the container from it, instead of 1.2.3.4 we have 172.17.0.1 as the client's ip.

Is there any way to get real ip?

Unfortunately, I did not find any useful information on this issue.

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question