Any one have octoprint running? I’m trying to setup usb webcam support. I have mjpeg_streamer running but it dosnt seem to respond on the loopback adress (127.0.0.1) only the internal address 192.168.1.163. I would rather set it up to use 127.0.0.1 that way if the 163 ip changes i wont have to reconfigure mjepg_streamer.
I am by no means a computer guy, but if you can setup static ip addresses that would help your problem
A 192 address I’d an internal address and generally speaking, the same device should get the same ip every time it reboots, unless you have a small scope and it gets full. My Octoprint has had the same internal IP for almost 2 years. It only changed when I had to replace the router.
In most of the routers you can reserve DHCP address allocations.
You can set the Pi to a static address, preferably outside your router’s DHCP scope.
Yea subnet is the same. I could assign it static via the router but ideally I wouldent have to.
It should work fine as the mjpeg server and the octoprint server are the same pi. 127.0.0.1 is simply a loop back address. Gets used all the time for plenty of other things.
an easier way to do it is since both are on the pi, is set them to different ports so http://192.168.1.102:80 for the octopi and http://192.168.1.102:8080 for mpeg server(as an example long as they are on different ports from any other service on the pi the exact port number wont matter too much long as its valid and they are different), use ip reservation on your router for the ip to always remain the but use dhcp. simple.
They are working just fine but again I’m trying to figure out why mjpeg dosnt respond on 127.0.0.1 not find a work around.
I see what it doing now. OctoPrint is simply embedding the url for the video stream rather than piping it threw OctoPrint.
I figured it was being consumed by OctoPrint and then being output by OctoPrint but its not.
So what would be cool is if OctoPrint had an option where it would just output what ever ip its currently responding to as the video stream output.
Seems like that would be ideal as I think most users would have mjpeg setup on the same server as OctoPrint.