Jellyfin Forum
How to enable IPv6 on command line ? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: How to enable IPv6 on command line ? (/t-how-to-enable-ipv6-on-command-line)



How to enable IPv6 on command line ? - NicoxOne - 2024-08-08

Hello,

I have a new host in a IPv6 environnement.
However, it seems like that by default, IPv6 is not enabled.

Code:
nico@wana:~$ sudo netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address          Foreign Address        State
tcp        0      0 0.0.0.0:8096            0.0.0.0:*              LISTEN
tcp        0      0 _localdnsproxy:domain  0.0.0.0:*              LISTEN
tcp        0      0 _localdnsstub:domain    0.0.0.0:*              LISTEN
tcp6      0      0 [::]:ssh                [::]:*                  LISTEN
udp        0      0 0.0.0.0:7359            0.0.0.0:*
udp        0      0 _localdnsproxy:domain  0.0.0.0:*
udp        0      0 _localdnsstub:domain    0.0.0.0:*
raw6      0      0 [::]:ipv6-icmp          [::]:*               

We can see the port openned on tcp but not on tcp6.

Is there a way to enable it by command line on the linux host ?
 Thank you


RE: How to enable IPv6 on command line ? - TheDreadPirate - 2024-08-08

IPv6 is enabled by default in pretty much every modern Linux distro. But your ISP and your router needs to support it. And a lot routers don't enable IPv6 by default so you'd need enable it, assuming your ISP supports IPv6.


RE: How to enable IPv6 on command line ? - NicoxOne - 2024-08-08

No the IPv6 is working fine on the host. It is that the jellyfin application only enable IPv4 by default (as I believe).
Since I don't have any IPv4, I cannot go on the web ui of jellfin to enable IPv6.
I think that should be a way to enable this setting without the web ui ?

I found out about a network.xml file, but since it is a fresh install, I feel like it is missing.


RE: How to enable IPv6 on command line ? - TheDreadPirate - 2024-08-08

Check /etc/jellyfin for the network.xml file. If its not there, here is my file you can use as a template.

Code:
<?xml version="1.0" encoding="utf-8"?>
<NetworkConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BaseUrl />
  <EnableHttps>false</EnableHttps>
  <RequireHttps>false</RequireHttps>
  <InternalHttpPort>8096</InternalHttpPort>
  <InternalHttpsPort>8920</InternalHttpsPort>
  <PublicHttpPort>8096</PublicHttpPort>
  <PublicHttpsPort>8920</PublicHttpsPort>
  <AutoDiscovery>true</AutoDiscovery>
  <EnableUPnP>false</EnableUPnP>
  <EnableIPv4>true</EnableIPv4>
  <EnableIPv6>true</EnableIPv6>
  <EnableRemoteAccess>true</EnableRemoteAccess>
  <LocalNetworkSubnets />
  <LocalNetworkAddresses />
  <KnownProxies />
  <IgnoreVirtualInterfaces>true</IgnoreVirtualInterfaces>
  <VirtualInterfaceNames>
    <string>veth</string>
  </VirtualInterfaceNames>
  <EnablePublishedServerUriByRequest>false</EnablePublishedServerUriByRequest>
  <PublishedServerUriBySubnet />
  <RemoteIPFilter />
  <IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>
</NetworkConfiguration>



RE: How to enable IPv6 on command line ? - NicoxOne - 2024-08-08

That's perfect, thank you.
I could access the web-ui in IPv6 only.

It might be a good idea to enable IPv6 by default to avoid this hurdle