speedtest icon indicating copy to clipboard operation
speedtest copied to clipboard

Librespeed shows internal docker IP instead of public IP.

Open jzbor opened this issue 1 year ago • 4 comments

Description

I am hosting my own librespeed instance. I would expect the site to show my public IP address, but instead it seems to show the internal docker address.

Server

Latest Docker image; Behind a Caddy reverse proxy.

Screenshots

image

jzbor avatar Apr 29 '24 17:04 jzbor

You can configure your reverse proxy to pass the remote IP via headers, e.g. X-Forwarded-For: or X-Real-IP:.

zypA13510 avatar May 05 '24 08:05 zypA13510

This is very interesting: While it shows the internal IP on my phone and laptop it works just fine on my desktop (using the same Firefox version as my laptop)

jzbor avatar May 06 '24 14:05 jzbor

I found somewhere, that the docker container must run on network mode "host". Has something to do with the NAT which uses internally.

buddhaCode avatar Sep 13 '24 14:09 buddhaCode