Closed mubashir-kwanso closed 1 month ago
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.
Is there any other header from which I can get the source IP address?
Unfortunately not - this is not something we expose today.
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
andrequest.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"]
.