Skip to content
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

UPnP/IGD unable to communicate with IGD at [IPv6 address] #102647

Closed
ottelo9 opened this issue Oct 24, 2023 · 9 comments · Fixed by #103792
Closed

UPnP/IGD unable to communicate with IGD at [IPv6 address] #102647

ottelo9 opened this issue Oct 24, 2023 · 9 comments · Fixed by #103792
Assignees

Comments

@ottelo9
Copy link

ottelo9 commented Oct 24, 2023

The problem

My router doesn't have IPv6 enabled but the integration still tries to communicate with the router at http://[fe80::4a5d:35ff:fe43:1572%2]:49000/igddesc.xml instead of http://192.168.178.1:49000/igddesc.xml which works fine.

I disabled IPv6 in router (Fritzbox) and in HA (+reboot).

There was already a related issue but was closed:
#77989

What version of Home Assistant Core has the issue?

core-2023.10.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

UPnP/IGD

Link to integration documentation on our website

https://www.home-assistant.io/integrations/upnp/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Config entry 'FRITZ!Box 6890 LTE' for upnp integration not ready yet: Unable to communicate with IGD at: http://[fe80::4a5d:35ff:fe43:1572%2]:49000/igddesc.xml; Retrying in background

Additional information

HA running on rpi4. IPv6 disabled on LAN and WIFI. But network adapter info shows still ipv6 address:
2023-10-24 12_30_48-Settings – Home Assistant

@home-assistant
Copy link

Hey there @StevenLooman, mind taking a look at this issue as it has been labeled with an integration (upnp) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of upnp can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign upnp Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


upnp documentation
upnp source
(message by IssueLinks)

@ottelo9
Copy link
Author

ottelo9 commented Oct 27, 2023

2023_10_27_08_41_20_Window

@StevenLooman
Copy link
Contributor

Hi @ottelo9, thank you for this issue. Can you enable debug logging as mentioned in the upnp documentation/Debugging integration, and send the logs to me? Either post these here, or mail these me.

My guess is that, although you've disabled IPv6 in your FRITZ!Box, it is still advertising itself over IPv6.

@ottelo9
Copy link
Author

ottelo9 commented Oct 27, 2023

Ok thx for your answer. I will do a debug logging. But anyway, it is possible to force IPv4 somehow?

Do I have to restart HA to enable debug logging?

@ottelo9
Copy link
Author

ottelo9 commented Nov 3, 2023

@StevenLooman
I sent you a mail with the log files.

@ottelo9
Copy link
Author

ottelo9 commented Nov 10, 2023

@StevenLooman
Any news for me?

@StevenLooman
Copy link
Contributor

Hi @ottelo9. Thank you for sending the logs. I am going to look at these now.

@StevenLooman
Copy link
Contributor

This is a problem with the router itself instead of the component. If IPv6 is disabled at the router, then it should not still broadcast itself on IPv6. Please, if you can, report a bug at AVM that if you disable IPv6 on the router, it is still responding with IPv6 related addresses.

Nevertheless, I've created a PR to prefer IPv4 addresses over IPv6 addresses. Hopefully this fixes this problem.

@ottelo9
Copy link
Author

ottelo9 commented Nov 13, 2023

I found out that I hadn't turned off ipv6 completely after all. I use a FB 6890 LTE and I have to enable IPv6 support in the internet settings (DSL/WAN). Then I went to the network settings and disable all IPv6. NOW it works :D

@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants