Skip to content

Wrong IP address in x-forwarded-for request header #466

Closed as not planned
Closed as not planned

Description

I am using devtunnel for chargebee webhook events.

Chargebee has listed the IPs from which they send the webhook event requests.

But somehow I am getting wrong IP in request.ip and request.headers["x-forwarded-for"]. None of these match the IPs listed in Chargebee docs.

If I use ngrok, I get correct IP in request.headers["x-forwarded-for"].

Activity

  1. derekbekoe commented on Aug 5, 2024

    @derekbekoe
    Contributor

    Thanks for taking the time to file this issue. The Dev Tunnels service uses the x-forwarded-for header internally and so the IP address returned will be in the Private Address Space. Therefore, it won't match what you may be expecting for your use-case.

    Unfortunately, we’re not able to prioritize changing this due to the other higher-impact issues we receive every week, based on the votes and comments from others in the community. Therefore, marking this as a known-issue.

  2. mubashir-kwanso commented on Aug 19, 2024

    @mubashir-kwanso
    Author

    Is there any other header from which I can get the source IP address?

  3. derekbekoe commented on Aug 19, 2024

    @derekbekoe
    Contributor

    Unfortunately not - this is not something we expose today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions