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

[Discovery plugin] wrong IP address sent out in zeroconf discovery response in case of multiple interfaces #4902

Open
2 of 4 tasks
dadosch opened this issue Oct 28, 2023 · 1 comment
Labels
bug Issue describes a bug not octoprint Issue is not on OctoPrint's end

Comments

@dadosch
Copy link
Contributor

dadosch commented Oct 28, 2023

The problem

  1. OctoPrint is available from two different networks 192.168.178.1/24 and 192.168.179.1/24.
  2. On any program (in the 178 subnet) using the autodiscovery via zeroconf/avahi, wait for the discovery of OctoPrint.
  3. Autodiscovery works, but a wrong response is returned by octoprint for this discover request: The host name (octopi.local) [correct] and the address 192.168.179.17 [wrong, it should send this response to requests from the .179 subnet, and not from .178 subnet; and a correct response to requests from the .178 subnet]
  4. Alternately, one can browse the requests sent out using avahi browse. Also there, you can see the wrong response is sent (to the PC in the 178 subnet)

Did the issue persist even in safe mode?

Yes, it did persist

If you could not test in safe mode, please state why ("currently printing" is NOT an excuse!)

No response

Version of OctoPrint

1.9.3

Operating system running OctoPrint

OctoPi 1.0.0

Printer model & used firmware incl. version

No response

Browser and version of browser, operating system running browser

No response

Checklist of files to include below

  • Systeminfo Bundle (always include!)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)
  • Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
  • GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)

Additional information & file uploads

This is probably the same thing as in #4359 but the mentioned options ignoredAddresses and ignoredInterfaces don't apply in my humble opinion, since OctoPrint should be discoverable from both interfaces in this case, with the correct response in each interface context.

No specific interfaces or addresses are specified in OctoPrints config.

For the pictures: Note this is taken on a PC which is not in the 179 subnet, only in the 178 subnet.
Avahi browse results:
avahi browse
PrusaSlicer Discovery Result
PrusaSlicer Discovery Result
Again, these screenshots are taken on a machine WHICH IS NOT IN THE .179 subnet.

octoprint-systeminfo-20231029001912.zip

Lastly, I want to thank you very much for maintaing and putting so much love into OctoPrint :)

@github-actions github-actions bot added the triage This issue needs triage label Oct 28, 2023
@foosel foosel added this to the 1.10.0 milestone Nov 27, 2023
@foosel
Copy link
Member

foosel commented Nov 28, 2023

That's sadly an issue with the underlying zeroconf library.

See python-zeroconf/python-zeroconf#296 (comment), python-zeroconf/python-zeroconf#180 and python-zeroconf/python-zeroconf#806.

I depend on a library here since I'd rather not reinvent the wheel, and I'm not familiar enough with the library code in question to lend a helping hand here, nor am sure would it even be welcome at the current point.

@foosel foosel added bug Issue describes a bug not octoprint Issue is not on OctoPrint's end and removed triage This issue needs triage labels Nov 28, 2023
@foosel foosel removed this from the 1.10.0 milestone Nov 28, 2023
@foosel foosel changed the title [Discovery plugin] wrong IP address sent outin discovery response in case of multiple interfaces [Discovery plugin] wrong IP address sent out in zeroconf discovery response in case of multiple interfaces Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue describes a bug not octoprint Issue is not on OctoPrint's end
Projects
Status: Blocked
Development

No branches or pull requests

2 participants