• 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 General Questions Prefer local connection on LAN

     
    • 0 Vote(s) - 0 Average

    Prefer local connection on LAN

    krojew
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jul
    Reputation: 0
    #1
    Yesterday, 07:57 PM
    Hi,
    I just installed Jellyfin and I'm trying to understand how to setup local and external connections in a way that a client connecting via an external address uses the LAN connection. I've previously used Emby and it had such an option available - entering both local and external addresses meant the client app switched to direct LAN connection, when in the same network, and external address otherwise. Is such a thing possible in Jellyfin?
    Generator
    Offline

    Junior Member

    Posts: 49
    Threads: 0
    Joined: 2025 May
    Reputation: 2
    #2
    Yesterday, 08:38 PM (This post was last modified: Yesterday, 08:38 PM by Generator. Edited 1 time in total.)
    When the client is on same network it will use the LAN IP, but if you want to remove any restrictions you can add the IP mask on network settings "LAN networks" (ex: 192.168.1.1/24)
    krojew
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jul
    Reputation: 0
    #3
    Today, 06:14 AM
    (Yesterday, 08:38 PM)Generator Wrote: When the client is on same network it will use the LAN IP, but if you want to remove any restrictions you can add the IP mask on network settings "LAN networks" (ex: 192.168.1.1/24)

    I tested this on two devices and it's not the case - even when in the same LAN, using external address causes the connection to go through the external route. The logs show the external IP and external transfer limits apply.
    I-G-1-1
    Offline

    Junior Member

    Posts: 23
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    #4
    Today, 08:29 AM
    On your router (or on the device that you use as DNS server on your LAN) add a line to the hosts file: ip-of-the-machine-running-jellyfin external-url

    At this point even if you use the URL any client inside the LAN that uses the router as DNS server will connect directly to the ip-of-the-machine-running-jellyfin without exiting to the internet.

    If any of the client devices use some sort of DNS "protection" that ignores the router DNS you have to change the hosts files in each client devices
    krojew
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Jul
    Reputation: 0
    #5
    Today, 08:30 AM
    (Today, 08:29 AM)I-G-1-1 Wrote: On your router (or on the device that you use as DNS server on your LAN) add a line to the hosts file: ip-of-the-machine-running-jellyfin external-url

    At this point even if you use the URL any client inside the LAN that uses the router as DNS server will connect directly to the ip-of-the-machine-running-jellyfin without exiting to the internet.

    If any of the client devices use some sort of DNS "protection" that ignores the router DNS you have to change the hosts files in each client devices

    That's what I ultimately did, but I wondered if there's some built-it mechanism for that like in Emby.
    Generator
    Offline

    Junior Member

    Posts: 49
    Threads: 0
    Joined: 2025 May
    Reputation: 2
    #6
    7 hours ago
    Something is not right on your LAN, even if i connect using external domain, still uses the local IP, not external.
    Do you have any VPN or proxy causing issues?
    « 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