OctoPrint - Multiple Instances

Is it possible to have multiple instances of Octoprint on the same network? For example, two raspberry pis controlling two separate 3D Printers? I feel like this should be possible, as I know there are tons of people with multiple printers and print farms even.

Yes, it’s possible. Just use different names for the hosts, so that no conflicts happen.

I had two octopi instances appear on my network, which confused me big time. I had to make sure that there were no unsued but powered pi’s anywhere. Finally figured out that the pi have several network interfaces. When I plugged in ethernet because of bad reception, the wifi was still running!

1 Like

Gotcha! So when I open up octopi.local/ on my network, which pi is it going to bring up? Does Octoprint have the framework built in to easily switch between the two PIs/profiles?

You just set up different suitable host names with raspi-config when you ssh into the pi, or you can change the host name by mounting the sd-card on a computer and add a file named octopi-hostname.txt on the root folder. Inside this file you add the new name.

1 Like

This, you set one up, rename it, then set the 2nd one up. If both have the same name you will have problems.

Right, I should be able to do that no problem. I am just curious how to actually interact with them separately once I have them both booted up and connected to the network. So when I actually open up Octoprint in Google Chrome, how do I switch between machines/pis?

Perhaps I am asking too many questions before actually trying it for myself :rofl: But I just looked up Raspberry Pis on Amazon and my goodness they are so expensive! Have these not gone up dramatically recently or what???

You just write the hostname in the adressbar, ending with ./
Easy-peasy! :smiley:

Yes, pi’s are out of stock mostly these days, making the scalpers rise the prices awfully high. Quite obnoxious if you ask me… if you are lucky you can get some normally priced, or you can check out other pi alternatives.

Correct, if you do not have one, you will not get one, unless you pay scalping prices. The chips are very inexpensive and the mfr stopped producing them to be able to make the more expensive ones. Do a search on line. They keep saying next quarter, next quarter, next quarter, but yeah, still next quarter, LOL
and just like Bjorn Said,

Pi1 name it octopi1 attach 3d printer
Pi2 name it octopi2 attatch cnc

you will have to go to each one individually. Now a pi can run 2 machines and there are configs out there for that too, but it sounds like you are fairly new, so 2 pi’s would be probably wise.

p.s. please name it what you want, octopi1 and octopi2 are just used for writing this reply

Chip shortage trickled to the pi finally. I had 2 octopi Setups on my network. One was named octoprint. One was named octocnc. Load the octoprint page to talk to the printer, the octocnc to talk to the primo. I don’t type in octo though, I know the IP address and just type that in the web browser. My DHCP server knew the devices and they always had the same address assigned.

1 Like

Got it. If I can manage to get a Pi then I will do that. Seems easy enough.

I set up my router to assign the IP address based on mac address. Its DHCP but they always get the same address. That way I can reflash any of them and they keep the same address. For me this is easier than setting up static IP addresses on the hosts themselves, which I would have to do every time.

In the browser I have bookmarks to remember which is which.

I have four set up this way. One for 3D printer, one for mpcnc, one for LR3, and one for experimenting.

Another alternative is to use an old pc as a headless linux server, if you have any machines around.

1 Like

I guess I would be negligent if I did not mention this. I had to search for it though:

Apparently it also works in windows.

1 Like

Mark the day: Tuesday, January 17th, 2023, was the day that Jeff suggested Windows as an alternative to Linux.

1 Like

I have 3 OctoPi instances running in my home network. Just rename them after installation and it’ll be fine. I also customize each instance with a different color at the top of each screen. In my own case, the color of the enclosure for the Pi is different on each printer so I can tell at a partial glance which machine I’m on. You can imagine the fun that led to that habit… :slight_smile:


I use the rpilocator to find available Pis.

I also run OpenWRT on them, am plodding along with Home Assistant on one, and eventually want to get a Klipper setup in place (which is what I’d like to use for my MP3DP V4 build)

You can also use the BTT pi4b and its host adapter in place of a raspberry Pi. I’d rather do that than use an old Windows box- but to each their own.

1 Like

I have done it. But i did not want to suggest it.

1 Like

Might want to look at the OrangePi and Octoprint. OrangePi’s have always been considered a somewhat inferior sbc than a Rpi but I think most of that was because of the software support and community, in this case, the software is sorted and so the community is not so important.