Can't access Octoprint via networked computers

I have a new install of Octoprint on my Linux Mint NUC. It shows that my octoprint server is running haproxy is running but i cant seem to access octoprint via other computers on the same network. Does anyone have any solutions for this? I can ssh into the Linux mint machine via my windows pc but cant access octoprint server via webrowser. I can access octoprint via ip(192.168.50.219) and octolinux.local on my linux mint computer but not with any other device(phone ipad windows pc)I am a linux noob and my knowledge is limited Please Help

Chris

how does your haproxy config look like?

global
        maxconn 4096
        user haproxy
        group haproxy
        daemon
        log 127.0.0.1 local0 debug

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        option redispatch
        option http-server-close
        option forwardfor
        maxconn 2000
        timeout connect 5s
        timeout client  15min
        timeout server  15min

frontend public
        bind :::80 v4v6
        use_backend webcam if { path_beg /webcam/ }
        default_backend octoprint

backend octoprint
        reqrep ^([^\ :]*)\ /(.*)     \1\ /\2
        option forwardfor
        server octoprint1 127.0.0.1:5000

backend webcam
        reqrep ^([^\ :]*)\ /webcam/(.*)     \1\ /\2
        server webcam1  127.0.0.1:8080

THats what it looks like

1 Like

Can you put this in code braces (</>)?

Some lines look messed up:

I think I know that's wrong

so it should look like this

global
        maxconn 4096
        user haproxy
        group haproxy
        daemon
        log 127.0.0.1 local0 debug

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        option redispatch
        option http-server-close
        option forwardfor
        maxconn 2000
        timeout connect 5s
        timeout client  15min
        timeout server  15min

frontend public
        bind :::80 v4v6
        use_backend webcam if { path_beg /webcam/ }
        default_backend octoprint

backend octoprint
        option forwardfor
        server octoprint1 127.0.0.1:5000

backend webcam
       http-request replace-path /webcam/(.*)   /\1
        server webcam1  127.0.0.1:8080

I didn't test it but I hope it works for you :crossed_fingers:

Thank you very much. Ill give that a try when i get back home in the morning. I appreciate the help

Chris

Hi i seem to be able to access my printer via all the web browsers in the house now. Was wondering if you could help with a webcam issue i have. I am having to start my camera manually it seems every time i reboot and on top of that i can only see my camera in microsoft edge. From all my other browser i get the "webcam stream not loaded error".

Chris

In order to make my camera work again i have to go through following commands it seems
sudo apt install subversion libjpeg8-dev imagemagick ffmpeg libv4l-dev cmake
git clone GitHub - jacksonliam/mjpg-streamer: Fork of http://sourceforge.net/projects/mjpg-streamer/
cd mjpg-streamer/mjpg-streamer-experimental
export LD_LIBRARY_PATH=.
make

after i do this i have my webcam stream accessible only if i use ip to access octoprint. if i use port 5000 i dont have a webcam
if i reboot then my camera no longer works again.

Did you perform the steps for 'Optional' Webcam Automatic Startup? Setting up OctoPrint on a Raspberry Pi running Raspbian or Raspberry Pi OS

It sounds like you haven't done that part yet.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.