thielepaul / photoprism-mobile

Flutter App for PhotoPrism
GNU General Public License v3.0
892 stars 72 forks source link

App doesn't seem to work when pointing to local IP #69

Closed gzerilli closed 3 years ago

gzerilli commented 3 years ago

Tried to set Photoprism URL to 192.x.x.x:2342 (with PhotoPrism auth enabled), but when I switch to Photos nothing appears. Tried to access Photoprism from the browser (on the same mobile device) and I can access it without any problem.

To integrate what said above, I've also tried to access Photoprism externally to my network and again, I'm able to reach it from the mobile browser but not the app.

gzerilli commented 3 years ago

Tried to set Photoprism URL to 192.x.x.x:2342 (with PhotoPrism auth enabled), but when I switch to Photos nothing appears. Tried to access Photoprism from the browser (on the same mobile device) and I can access it without any problem.

To integrate what said above, I've also tried to access Photoprism externally to my network and again, I'm able to reach it from the mobile browser but not the app.

I've solved the problem. I needed to activate BOTH authentication (PhotoPrism with the admin account and Basic HTTP with the server user account) and add the protocol to the URL (http://192.x.x.x:2342). While this might not be an issue with the code, it is an issue with the inexistent documentation or the with the app itself not giving any feedback on wrong configuration.