Notifications
Clear all

Configuring PrusaSlicer for Octoprint  

  RSS
Bryan34
(@bryan34)
Eminent Member
Configuring PrusaSlicer for Octoprint

I'm trying to set up Octoprint on an MK3S. Octoprint is running on the RPi and in my browser. It can see the Prusa and displays the contents of the SD card. But I can't get PrusaSlicer to configure for it. When I try to configure the Octoprint printer, I enter the following for the Hostname:

https:192.168.1.191

And I get the following error when I try to Test:

Could not connect to Octoprint: URL using bad/illegal format or missing URL: port number ended with “.”

If I enter the following Hostname:

https:Username:Password:192.168.1.191

I get the following error:

Could not connect to Octoprint: URL using bad/illegal format or missing URL: port number ended with “U”

I entered the API Key copied from the Octoprint server.

Posted : 31/08/2021 7:45 pm
fuchsr
(@fuchsr)
Famed Member

Try just entering the IP address, eg 192.168.40.195. That's how my physical printer profiles are configured.  Also, don't forget to set a static IP address for your printer on your router.

Posted : 31/08/2021 11:11 pm
Bryan34
(@bryan34)
Eminent Member
Topic starter answered:
Nevermind....

I was trying to follow the popup guide in the configure window. If I just enter the IP address for the Hostname, it seems to work.

Posted : 01/09/2021 1:33 am
towlerg
(@towlerg)
Noble Member
static IP

Just make sure that the IP you're using is static.

I may be wrong here but a host name isn't a web page so no https:// should not be used.

Posted : 01/09/2021 11:43 am
Bryan34
(@bryan34)
Eminent Member
Topic starter answered:
Static IP

Fuchsr says to set up a static IP address on my router, but it seems to me the router has no effect on the IP address of the RPi 4. As far as I can tell from my reading, this would have to be done by editing the dhcpcd.conf file in the Pi.

Is this right?

Posted : 01/09/2021 3:54 pm
fuchsr
(@fuchsr)
Famed Member

Okay, now we're getting into networking basics. Most networks use DHCP, that is, the devices on the network get their IP addresses dynamically assigned by the router. That means if a device or the router reboots there's no guarantee the devices will end up with the same IP address as before. But in your router settings you can bind a specific IP address to the MAC address of your device's network interface, thus creating a static IP address.  

Posted : 01/09/2021 4:06 pm
fuchsr
(@fuchsr)
Famed Member

Sorry... dhcpd.conf is a file read by the DHCP server program and only relevant is a pi is used as a DHCP server. But in most cases the Pi is a client connecting to your primary network router. 

Posted : 01/09/2021 4:11 pm
Bryan34
(@bryan34)
Eminent Member
Topic starter answered:
IP address reservation

Never too old to learn something new. I've used the router to map ports, but never to reserve IP addresses. I have always told my devices to use static. But I see now how to configure my Apple router to assign an IP address to a MAC address.

How is it that you can make a REPLY to the forum without a TITLE, but when I try to do that, it demands I enter a title?

Posted : 01/09/2021 5:02 pm
fuchsr
(@fuchsr)
Famed Member

Can't spill the secret!

No, seriously, it's easy. I *am* entering a comment. It's just a blank character!

Posted : 01/09/2021 6:07 pm
Tip
 Tip
(@tip)
Active Member
URL Format

Anything after a single colon (:) is interpreted as a port number. As mentioned, proper format would be http://ipaddress:port

Usually the :port is not necessary.

Posted : 06/09/2021 6:40 pm
towlerg
(@towlerg)
Noble Member
correction

 

Posted by: @tip

Anything after a single colon (:) is interpreted as a port number. As mentioned, proper format would be http://ipaddress:port

Usually the :port is not necessary.

I can't edit my last but of course you're correct, PrusaSlicer is talking to OctoPrints web interface.

 

Posted : 07/09/2021 10:16 am
bobstro
(@bobstro)
Illustrious Member
dnsmasq is a great DHCP server

For those of you rolling your own home network, dnsmasq is a nice DHCP server. If I connect with a new device, it automatically creates a dynamic dns entry for that device using the hostname. For example, I have configured 3 OctoPrint instances with my printer names (mk3, swx1, mpc). Once the printer starts, entries are automatically made for mk3.mydomain.com, swx1.mydomain.com, and mpc.mydomain.com. I can ping any of them by just the hostname (e.g., ping mk3). If the Raspberry Pi changes addresses, dns is automatically updated.

It's also worth getting bonjour working on Windows. I can always ping an OctoPrint installation as mk3.local, for example.

I haven't had to futz with static IP addresses in years.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 07/09/2021 2:13 pm
Lionel_Dagon
(@lionel_dagon)
New Member
octopi.local

Try with the following:

octopi.local

it should work

Posted : 19/10/2021 10:33 am
Share: