Page 1 of 1

Accessing Octoprint

Posted: Sun Apr 01, 2018 11:22 am
by Mazhdulin
Hi all,

I'm the proud owner of a M3 ID, still getting to know it but prints are getting better every day.
One of the things i'm focussing on now is getting access to it from other sources as my computer.

I have Octoandroid installed on my phone but it is very limited and when using the webcam feature it crashes (when i access octoprint form my computer in the control tab I can see it playing normally).
The normal internal octoprint website which i access from my PC i Cant connect to it in the browser on my mobile, even though I am in the same WIFI.

So my questions are basically:
1. When in my own wifi can I access octoprint with full functionality from my phone?
2. What is the best way to connect externally?

Re: Accessing Octoprint

Posted: Sun Apr 01, 2018 11:46 am
by Mazhdulin
Okay after some extra tinkering I manages to find the exernal URL, so that works fine.
I have switched apps to octoremote, works a lot better.
The only thing that is not working is the webcam feature externally, not so weird as the webcam url is:
but when I change to myip:8100 it is still not working, any ideas?

Re: Accessing Octoprint

Posted: Sun Apr 01, 2018 3:33 pm
by Hugs
You're changing the port so check your /etc/haproxy/haproxy.cfg file. You'll probably have to add the different port there. I'm just using the standard 8080 so this is the binding section from mine:

Code: Select all

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

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

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