Accessing Octoprint

Have questions or comments about Simplify3D, Slic3r, Cura, Reptier, etc? Or wondering about which CAD software to use...discuss it here...

Accessing Octoprint

Postby Mazhdulin » Sun Apr 01, 2018 11:22 am

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?
Mazhdulin
 
Posts: 17
Joined: Sat Oct 07, 2017 10:42 pm

Re: Accessing Octoprint

Postby Mazhdulin » Sun Apr 01, 2018 11:46 am

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:
http://192.168.178.171:8080/?action=stream
but when I change 192.168.178.171:8080 to myip:8100 it is still not working, any ideas?
Mazhdulin
 
Posts: 17
Joined: Sat Oct 07, 2017 10:42 pm

Re: Accessing Octoprint

Postby Hugs » Sun Apr 01, 2018 3:33 pm

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 127.0.0.1:5000

backend webcam
        reqrep ^([^\ :]*)\ /webcam/(.*)     \1\ /\2
        server webcam1  127.0.0.1:8080
Hugs
 
Posts: 86
Joined: Tue Mar 08, 2016 11:16 pm
Location: Pennsylvania


Return to Software

Who is online

Users browsing this forum: Bing [Bot] and 3 guests