Is there a way to get the user's IP address in a twig template? All the twig examples I find say to do it like this:
{% set ipAddr = app.request.server.get("REMOTE_ADDR") %}
But this variable always returns NULL. These examples aren't specific to Drupal so I'm guessing part of the Drupal implementation blocks/omits this.