Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OctoPrint integration: Port number from discovery not taken into account #2530
Slic3r version: 1.2.5
When browsing for OctoPrint instances on the current network and selecting one of the found instances, the port number that is also part of the dns-sd record is not taken into account for prefilling the connection dialog and has to be added manually by the user (otherwise not connection will be possible).
The instance in question is listening on port 5000, which can be verified using
So the host field in slic3r's UI should actually be prefilled with "$host:$port", not just "$host", or alternatively an additional port field should be added. Manually adding the correct port fixes connectivity (although the Test button doesn't work due to #2526)
Have you thought about requiring a full base url here instead? That would also allow the usage of https and prefix URLs.
added a commit
Jan 12, 2015
I don't know how magical the underlying system is, so I can't say for sure if https would work right off the bat.
Additionally, the bonjour routines being used don't actually return the protocol used, making it very tricky if you're trying for https on a weird port.
added a commit
Jan 13, 2015
Thank you @foosel and @lordofhyphens. Parsing an optional protocol prefix in the configuration value is trivial, but supporting the protocol itself when it's not