Jellyfin Forum
NPM Real IP - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: NPM Real IP (/t-npm-real-ip)



NPM Real IP - Eri Cka - 2025-09-01

Hello,

I use NPM and I can't have the real IP of clients even by adding this in the configuration

"proxy_set_header X-Forwarded-For $remote_addr;"

I also added the IP address of the Nginx server in the jellyfin configuration


RE: NPM Real IP - jravin - 2025-09-01

(2025-09-01, 03:51 PM)Eri Cka Wrote: Hello,

I use NPM and I can't have the real IP of clients even by adding this in the configuration

"proxy_set_header X-Forwarded-For $remote_addr;"

I also added the IP address of the Nginx server in the jellyfin configuration

Google the following command:

Code:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

I am guessing this is what you meant, but Jellyfin needs to trust the reverse proxy to use the X-Forwarded-For header. In the Jellyfin admin dashboard under Networking, you can add trusted proxy IPs. Only requests from those IPs will have their X-Forwarded-For header used for the client IP.


RE: NPM Real IP - Eri Cka - 2025-09-02

Thank you for your help I succeeded, however with external applications like Jellyseerr I do not have the right IP address, I have the address in 172 and also adding it in Jellyfin it does not work