-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LAN with IPv4 + IPv6 #56
Comments
Thanks for reporting. I'll look into this. |
It turns out, you can start up TVHeadend with IPv6 support (the -6 option) but it is not enabled by default. Maybe there needs to be an "IPv4 only" checkbox in the settings. |
Txh. Good to know that this is possible. A setting is probably the best, in 2014-09-29 11:07 GMT+02:00 Nigel Hathaway notifications@github.com:
|
Another option is to use something like the "Happy Eyeballs" algorithm to choose the protocol. |
I looked in the code. See HTSConnection in line 62: System.setProperty("java.net.preferIPv6Addresses", "false"); |
In my opinion the current code looks right. If you set java.net.preferIPv4Stack to true, IPv6 will be completely disabled. This is the log while trying to connect via hostname in a dual-stack environment:
|
Someone seems to have a similar problem: |
I'm closing this issue. It can be reopened when it is required or a patch has been provided. |
There is a problem on LANs with IPv6, where DNS provides both IPv4 and IPv6 addresses. TVHeadend itself only serves on IPv4, even if the box it is on is dual stack. When getting the name (from DNS), TVHGuide picks up the IPv6 address in preference over the IPv4, and tries to connect on IPv6, which results in connection refused.
The text was updated successfully, but these errors were encountered: