# How to forward request IP to service in Traefik v2?

**URL:** <https://community.traefik.io/t/how-to-forward-request-ip-to-service-in-traefik-v2/2047>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [September 30, 2019, 2:14pm UTC](https://community.traefik.io/t/how-to-forward-request-ip-to-service-in-traefik-v2/2047 "2019-09-30T14:14:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ch1ch1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ch1ch1/32/710_2.png) [@Ch1ch1](https://community.traefik.io/u/Ch1ch1)\
**Post date:** [September 30, 2019, 2:26pm UTC](https://community.traefik.io/t/how-to-forward-request-ip-to-service-in-traefik-v2/2047/2 "2019-09-30T14:26:38Z")

</div>

HELLO

You have to publish the port in host mode :

Example

```auto
version: "3.6"

services:

  app:
    image: "traefik:v2.0.0"

    ports:
      - target: 80
        published: 80
        protocol: tcp
        mode: host
      - target: 443
        published: 443
        protocol: tcp
        mode: host
        .....

```

---

_[View the full topic](https://community.traefik.io/t/how-to-forward-request-ip-to-service-in-traefik-v2/2047)._
