• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Real IP

     
    • 0 Vote(s) - 0 Average

    Real IP

    Jellyfin Dashbooard with Real IP's
    MoldyTaint
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 May
    Reputation: 0
    Country:United States
    #1
    2024-05-19, 01:28 PM
    Hello!

    First off, thank ya'll for the hard work that has been put into a great product as Jellyfin.

    I have a Jellyfin instance setup on my Proxmox server. Right now I have everything working without hiccups. I have my domain name working, Caddy set up and working, and users can do as they would like.

    One nuance that I seem to be encountering is on Jellyfin dashboard for users, it will show the CDN for Cloudflare rather than the forwarded IP that gets sent also. I have checked in Caddy logs and do see their real ip however Jellyfin is still using that 172.xxx.xxx.xxx. Is there a setting or something that I have missed that could be causing this on Jellyfin side?
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 243
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #2
    2024-05-19, 02:43 PM
    You need to enter the list of IPs that are producing Jellyfin in the Networking settings.
    MoldyTaint
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 May
    Reputation: 0
    Country:United States
    #3
    2024-05-20, 01:54 AM
    Hey, thank you for such a speedy and amazing answer. Hopefully I am not coming off as a bother however if they are coming off as a cloudflare proxy ip, would I have to put in all of theirs as a single or would I be able to do something like 172.xxx.xxx.0/24?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-05-20, 12:35 PM
    You would have to set the Cloudflare IP as a known proxy. Then Jellyfin will use the x-forwarded-for field, which has the real IP, for activity.

    I'm not sure if that field will accept CIDRs. The description only mentions specific IPs.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    MoldyTaint
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 May
    Reputation: 0
    Country:United States
    #5
    2024-05-20, 03:31 PM
    Thank you for a reply back also. I greatly appreciated the help. I did a little testing from what I could gather and read/understand this is what I have gathered thus far:

    I enabled and setup everything and have verified that the ip address is able to be forwarded in the logs from the reverse proxy (Caddy)

    Code:
    {"level":"info","ts":1716001808.679013,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.232","remote_port":"36006","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host":>
    {"level":"info","ts":1716001808.6796963,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.233","remote_port":"32890","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host">
    {"level":"info","ts":1716001808.6811714,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.233","remote_port":"32846","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host">
    {"level":"info","ts":1716001808.6824157,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.214","remote_port":"29514","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host">
    {"level":"info","ts":1716001808.7196763,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.233","remote_port":"32872","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host">
    {"level":"info","ts":1716001808.8876588,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.232","remote_port":"35984","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host">
    {"level":"info","ts":1716001814.127556,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.233","remote_port":"32862","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host":>
    {"level":"info","ts":1716001814.207943,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.232","remote_port":"35994","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host":>
    {"level":"info","ts":1716001814.3329265,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"172.71.254.232","remote_port":"36006","client_ip":"185.695.185.518","proto":"HTTP/2.0","method":"GET","host">

    So I think the issue might be on my end as it's coming through as "client_ip" rather than the forwarded field you have mentioned earlier. So I then went into Jellyfin and input all the cloudflare cidr ip's that are being used which still resulted in negative results. I fear I may just be sol
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode