Jump to content

Force ipv6


Recommended Posts

mw420blazeit
Posted

How do I force emby to use ipv6 in WAN and keep ipv4 for LAN
image.png.dd0677b0a901ea6ea769220e7eb572c9.png

Posted

Hi, you can customize your remote address in Emby Server network settings. Just keep in mind that if you do that, it will be your responsibility to keep the setting up to date if/when your IP changes.

mw420blazeit
Posted

Any alternate solution to just point emby to use ipv6 so that it auto updates everytime the ip changes

Posted

I guess we'd have to add an option in network settings to prefer ipv6 when both are detected.

  • 4 weeks later...
mw420blazeit
Posted
On 22/11/2022 at 04:34, Luke said:

I guess we'd have to add an option in network settings to prefer ipv6 when both are detected.

would love that ❤️

  • Thanks 1
  • 5 months later...
mw420blazeit
Posted

Are there any server files I can edit to make this happen 
It always attaches to ipv4 which is behind NAT

  • 4 weeks later...
Posted
On 11/20/2022 at 1:38 PM, Luke said:

Hi, you can customize your remote address in Emby Server network settings. Just keep in mind that if you do that, it will be your responsibility to keep the setting up to date if/when your IP changes.

Hi, did you try this?

  • 1 month later...
mw420blazeit
Posted
On 22/11/2022 at 04:34, Luke said:

I guess we'd have to add an option in network settings to prefer ipv6 when both are detected.

I actually wanted this to be a thing

  • 1 month later...
Posted

@mw420blazeitI'm happy to add this option for you, but we'll have to find another service to use to obtain your ipv6 address. We use ipify:

https://www.ipify.org/

Currently we use the ipv4 url. They have a universal url but they seem to send back ipv4 when available and there's no way to control that.

But if you jump on the server beta channel, starting in 4.8.0.45+, this will be a hidden config switch. 

In config/system.xml, set PreferredDetectedRemoteAddressFamily to InterNetworkV6

Then start the server. This will have the server use their universal url. Perhaps for you it will result in ipv6.

  • Like 1
mw420blazeit
Posted
12 hours ago, Luke said:

@mw420blazeitI'm happy to add this option for you, but we'll have to find another service to use to obtain your ipv6 address. We use ipify:

https://www.ipify.org/

Currently we use the ipv4 url. They have a universal url but they seem to send back ipv4 when available and there's no way to control that.

But if you jump on the server beta channel, starting in 4.8.0.45+, this will be a hidden config switch. 

In config/system.xml, set PreferredDetectedRemoteAddressFamily to InterNetworkV6

Then start the server. This will have the server use their universal url. Perhaps for you it will result in ipv6.

OMG thanks will try definitely

  • Thanks 1
mw420blazeit
Posted
On 31/08/2023 at 23:55, Luke said:

@mw420blazeitI'm happy to add this option for you, but we'll have to find another service to use to obtain your ipv6 address. We use ipify:

https://www.ipify.org/

Currently we use the ipv4 url. They have a universal url but they seem to send back ipv4 when available and there's no way to control that.

But if you jump on the server beta channel, starting in 4.8.0.45+, this will be a hidden config switch. 

In config/system.xml, set PreferredDetectedRemoteAddressFamily to InterNetworkV6

Then start the server. This will have the server use their universal url. Perhaps for you it will result in ipv6.

Unfortunately it did not work for me, still shows the NAT walled ipv4
But as stated that emby uses https://www.ipify.org/
Running their ipv6 command, I get my proper ipv6

$ curl 'https://api64.ipify.org?format=json'



image.png

  • 6 months later...
mw420blazeit
Posted
On 31/08/2023 at 23:55, Luke said:

@mw420blazeitI'm happy to add this option for you, but we'll have to find another service to use to obtain your ipv6 address. We use ipify:

https://www.ipify.org/

Currently we use the ipv4 url. They have a universal url but they seem to send back ipv4 when available and there's no way to control that.

But if you jump on the server beta channel, starting in 4.8.0.45+, this will be a hidden config switch. 

In config/system.xml, set PreferredDetectedRemoteAddressFamily to InterNetworkV6

Then start the server. This will have the server use their universal url. Perhaps for you it will result in ipv6.

Any way to try this on stable 4.8.3
unable to find system.xml

Posted
4 hours ago, mw420blazeit said:

Any way to try this on stable 4.8.3
unable to find system.xml

Hi, where are you looking for it?

mw420blazeit
Posted
14 minutes ago, Luke said:

Hi, where are you looking for it?

/opt/emby-server/system

  • 1 year later...
chenlianglin
Posted
在 2023 年 9 月 1 日凌晨 2:25,Luke 说:

@mw420blazeit我很高兴为您添加此选项,但我们必须找到其他服务来获取您的 ipv6 地址。我们使用 ipify:

https://www.ipify.org/

目前我们使用 ipv4 url。他们有一个通用 url,但他们似乎在可用时发回 ipv4,并且无法控制它。

但是,如果您从 4.8.0.45+ 开始跳转到服务器测试版频道,这将是一个隐藏的配置开关。

在 config/system.xml 中,将 PreferredDetectedRemoteAddressFamily 设置为 InterNetworkV6

然后启动服务器。这将使服务器使用其通用 url。也许对您来说,它会导致 ipv6。

修改后还是不是无法获取ipv6

Posted
1 hour ago, chenlianglin said:

修改后还是不是无法获取ipv6

hi, well if you disable ipv6 then it's not going to use ipv6, right? Can you please explain your question a little bit more?

  • 3 weeks later...
chenlianglin
Posted
On 8/14/2025 at 1:23 AM, Luke said:

hi, well if you disable ipv6 then it's not going to use ipv6, right? Can you please explain your question a little bit more?

使用的是NAS,设备可以正常获取到ipv6,emby通过NAS获取的IPV6可以访问,但控制台,广域网访问地址是ipv4,已经把文件内改为InterNetworkV6,不起作用

chenlianglin
Posted
在 2025 年 8 月 14 日凌晨 1:23,Luke 说:

嗨,如果你禁用 IPv6,那么它就不会使用 IPv6,对吧?你能再解释一下你的问题吗?

 

QQ_1756826132562.png

Posted
2 hours ago, chenlianglin said:

 

QQ_1756826132562.png

HI, it's not a guarantee. You may just have to configure your remote address manually in server network settings. Please keep in mind that if you do this, you'll need to keep it up to date when it changes.

chenlianglin
Posted
20 hours ago, Luke said:

HI, it's not a guarantee. You may just have to configure your remote address manually in server network settings. Please keep in mind that if you do this, you'll need to keep it up to date when it changes.

了解,那只能继续使用ipv4,还有另一个问题,当广域网地址变更后,emby服务器的地址更新慢,能提高ip地址更新时间么?

Posted

How long does it take to update for you?

  • 4 weeks later...
Posted
On 11/20/2022 at 7:34 PM, mw420blazeit said:

How do I force emby to use ipv6 in WAN and keep ipv4 for LAN
image.png.dd0677b0a901ea6ea769220e7eb572c9.png

If you want Emby to use IPv6 for WAN (internet) access, but still keep using IPv4 for LAN (local network), one clean solution is to split the way you connect to it:

  • Register a subdomain just for IPv6 (I used: emby6.yourdomain.com).

  • In your domain’s DNS settings, create an AAAA record that points to your server’s public IPv6 address.

  • Configure your router’s firewall to forward the necessary ports on IPv6 directly to your Emby server.

    That way, when someone connects via emby6.yourdomain.com, traffic will come in over IPv6.

  • Keep your IPv4 setup as-is for your LAN. Your LAN devices will still resolve and connect using the IPv4 private address.

So, effectively:

  • Local/LAN clients → still use IPv4 to connect directly to 192.168.x.x.

  • WAN clients → use the special IPv6 subdomain, which routes through IPv6.

You don’t need to “force” Emby itself to choose between IPv4 or IPv6. Instead, you control which protocol is used just by the hostname you connect to.

mw420blazeit
Posted
15 hours ago, Capitano said:

If you want Emby to use IPv6 for WAN (internet) access, but still keep using IPv4 for LAN (local network), one clean solution is to split the way you connect to it:

  • Register a subdomain just for IPv6 (I used: emby6.yourdomain.com).

  • In your domain’s DNS settings, create an AAAA record that points to your server’s public IPv6 address.

  • Configure your router’s firewall to forward the necessary ports on IPv6 directly to your Emby server.

    That way, when someone connects via emby6.yourdomain.com, traffic will come in over IPv6.

  • Keep your IPv4 setup as-is for your LAN. Your LAN devices will still resolve and connect using the IPv4 private address.

So, effectively:

  • Local/LAN clients → still use IPv4 to connect directly to 192.168.x.x.

  • WAN clients → use the special IPv6 subdomain, which routes through IPv6.

You don’t need to “force” Emby itself to choose between IPv4 or IPv6. Instead, you control which protocol is used just by the hostname you connect to.

i ended up setting a ddns 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...