Skip to main content
Proper network configuration is essential for accessing your Jellyfin server locally and remotely. This guide covers network settings, port configuration, SSL/TLS setup, and reverse proxy integration.

Network Configuration File

Jellyfin stores network settings in network.xml within the config directory:

Port Configuration

Jellyfin uses the following default ports:
Default HTTP port: 8096
  • InternalHttpPort: Port the server listens on internally (default: 8096)
  • PublicHttpPort: Port advertised for external access (default: 8096)
Public and internal ports can differ when using port forwarding or reverse proxy.

Base URL Configuration

If hosting Jellyfin at a subpath (e.g., behind a reverse proxy), configure the base URL:
1

Understanding Base URL

The base URL is automatically normalized:
  • Leading / is added if missing
  • Trailing / is removed
  • Empty values default to root path
2

Reverse Proxy Example

If accessing Jellyfin at https://example.com/jellyfin:
3

Root Path

For root path hosting (https://jellyfin.example.com):

SSL/TLS Configuration

Enabling HTTPS

1

Enable HTTPS

Set the HTTPS flag in network configuration:
2

Certificate Configuration

Provide path to SSL certificate and password:
The certificate must be in PFX (PKCS#12) format.
3

Force HTTPS (Optional)

Redirect all HTTP requests to HTTPS:

Generating SSL Certificates

For production environments, use a reverse proxy like Nginx or Caddy to handle SSL termination instead of Jellyfin’s built-in HTTPS.

Network Binding

IP Version Support

Control which IP protocols are enabled.

Bind Addresses

Specify which network interfaces Jellyfin should bind to:
Leave empty to bind to all available interfaces.

Virtual Interface Filtering

Ignore virtual interfaces created by Docker, VMs, or containers.

LAN Configuration

Local Network Subnets

Define which IP ranges are considered local:
1

Automatic Detection

If not specified, Jellyfin automatically detects local networks.
2

Custom Subnets

Explicitly define subnets for:
  • Complex network topologies
  • VPN access
  • Multiple VLANs
3

CIDR Notation

Use CIDR notation (e.g., 192.168.1.0/24) to specify network ranges.

Remote Access

Enable Remote Access

Allow connections from outside the local network.

Auto Discovery

Enable automatic discovery by clients on the local network.
UPnP-based port forwarding is no longer supported. Use manual port forwarding or a reverse proxy instead.

Published Server URI

Automatically determine server URI from HTTP requests:
Disabled by default for security.

IP Filtering

Remote IP Filter

Control which remote IPs can access the server:
IsRemoteIPFilterBlacklist=false: Only allow listed IPs

Reverse Proxy Configuration

Known Proxies

Register reverse proxy IPs for proper forwarding:
Jellyfin trusts X-Forwarded-For and X-Real-IP headers from known proxies.

Nginx Configuration

Apache Configuration

Caddy Configuration

Caddy automatically handles HTTPS certificates via Let’s Encrypt.

Traefik Configuration

Firewall Configuration

Docker Networking

When running Jellyfin in Docker:
Using network_mode: host provides better performance and automatic discovery but requires the host network stack.

Troubleshooting

1

Cannot Access Remotely

Check:
  • EnableRemoteAccess is true
  • Firewall allows traffic on configured ports
  • Router port forwarding is configured
  • Public IP address is correct
2

HTTPS Not Working

Verify:
  • Certificate path is correct and accessible
  • Certificate is in PFX format
  • Certificate password is correct
  • Ports 8920 (or custom HTTPS port) are open
3

Reverse Proxy Issues

Ensure:
  • Base URL matches proxy configuration
  • Proxy IP is in KnownProxies
  • WebSocket support is enabled
  • Headers are properly forwarded
4

Auto Discovery Not Working

  • Enable AutoDiscovery in network.xml
  • Check firewall allows UDP broadcast
  • Verify client and server are on same network

Best Practices

Use Reverse Proxy

Let Nginx, Caddy, or Traefik handle SSL/TLS termination for better security and easier certificate management.

Secure Remote Access

Use VPN or properly configured reverse proxy with strong authentication for remote access.

Limit Exposure

Use IP filtering to restrict access to known networks or IP ranges.

Monitor Logs

Regularly check network logs for suspicious access attempts.

Next Steps

Transcoding Setup

Configure media transcoding and quality settings

Hardware Acceleration

Enable GPU acceleration for better performance