title: How to get client ip from request using symfony in docker
body: <p>I try to get the ip using:</p>
  <pre><code>$request-&gt;getClientIp()
  </code></pre>
  <p>Which returns:</p>
  <p><code>172.30.0.1</code> instead of something like <code>210.110.98.180</code></p>
  <p>Using this something like this in docker-compose</p>
  <pre><code>http:
      build:
        context: .
        dockerfile: ./Dockerfile
      volumes:
        - &quot;./:/var/www/http/&quot;
      ports:
        - &quot;80:80&quot;
  </code></pre>