Giter Site home page Giter Site logo

Comments (18)

floogulinc avatar floogulinc commented on May 29, 2024

Please ensure you've set the settings for the API in Hydrus as shown in the screenshot in the guide. Especially the CORS setting.

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

I double cheked it just now and it matches all the ticks in the Wiki Screenshot.

from hydrus-web.

floogulinc avatar floogulinc commented on May 29, 2024

Can you screenshot what you get when you visit the duckdns domain on your phone and what you're putting in the Hydrus Web API settings? If you would rather not post those here you can send them to me via Discord, email, or any other service I have listed on my website.

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

Nevermind, for some reason the Duck DNS service isn't working anymore. I get "site can't be reached" error. Here's a screenshot of my client api and Duck DNS settings
Screenshot (10)
Screenshot (12)

The Duck DNS was able to access my Hydrus API before but I made a change to remove Tailscale and use my own IP Address instead. Could my Firewall be blocking the connection some how? I'm new to this so how do I make sure the firewall allows this connection?

Here are the steps I've followed:

  1. Setup the Hydrus API as shown in the Wiki Screenshot.
  2. Created an Access Key with all permissions enabled.
  3. Setup a Duck DNS Domain with my local IP (IPv4 Address)
  4. Downloaded Windows amd64 Caddy file and placed it in C:\caddy after renaming it to "caddy.exe"
  5. I used CMD instead of PowerShell to Install Caddy using the WinSW x64 service wrapper (renamed to "caddy-service") after creating a caddy-service xml file using NotePad++.
  6. Created a "Caddyfile" with no extensions and added the below details.
  7. Configured Caddyfile using the http Duck DNS Domain, replaced Duck DNS API and I'm using the correct host.
  8. Restarted Caddy service from taskmanager

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

All I need is to access my Hydrus files locally (connected to the same router) so I can tag and manage files from my Android Tablet instead of sitting long hours at a desk. If there is a safe and easy way to do this, please let me know.

from hydrus-web.

floogulinc avatar floogulinc commented on May 29, 2024

Please post your Caddyfile

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

Here it is
Caddyfile.zip
I replaced my data with "x" and hope that's not going to cause an issue with diagnosing the error.

I'll try messing around with some settings when I have the time and see why I'm unable to connect to Hydrus API using my IP Address when I was able to connect it using Tailscale.

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

Ok, I managed to get the second problem fixed (kinda), Like an idiot, I was using a IPv4 DNS value instead of IP Address. Entered the right value in appropriate fields and now, I'm able access Hydrus Client again when entering my domain address in my PC browser. When entering the same domain address on my Tablet however, it shows loading for sometime and ends up in a "site can't be reached" error.

Here are screenshots of the error I get when trying to test the Hydrus Web settings from my PC and Tablet.
Screenshot (13)
Screenshot_20230401_071401_Chrome

Also, I had a doubt about the Email address in "Caddyfile". How can it be helpful in obtaining my https certificate? I'm not adding my Email address in Hydrus, Duck DNS... e.t.c. right?

from hydrus-web.

floogulinc avatar floogulinc commented on May 29, 2024

You have to include https:// in the url you enter in Hydrus Web. This is in the guide.

from hydrus-web.

floogulinc avatar floogulinc commented on May 29, 2024

When entering the same domain address on my Tablet however, it shows loading for sometime and ends up in a "site can't be reached" error.

This is probably a firewall or other network issue on your local network assuming you're using the correct IP. Part of why I recommend Tailscale is because it avoids issues like that.

Also, I had a doubt about the Email address in "Caddyfile". How can it be helpful in obtaining my https certificate? I'm not adding my Email address in Hydrus, Duck DNS... e.t.c. right?

The email address is only used by Let's Encrypt to email you about your certificate expiring or other issues.

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

You have to include https:// in the url you enter in Hydrus Web. This is in the guide.
Oh ok, made the change and tried the connection on my Desktop PC and I get the following toast message
Screenshot (14)
I named my Access key as "new api permissions" so I'm guessing that this is a good response.

However, when I go to the main page and search for something, I get the following toast
Screenshot (15)
Screenshot (16)

This is probably a firewall or other network issue on your local network assuming you're using the correct IP. Part of why I recommend Tailscale is because it avoids issues like that.
Correct IP in Duck DNS? assuming that this is a firewall issue, how do I make this connection (PC to Tablet) work? or am I better off using Tailscale?

The email address is only used by Let's Encrypt to email you about your certificate expiring or other issues.
Got it, thanks for clarifing.

from hydrus-web.

floogulinc avatar floogulinc commented on May 29, 2024

Please format your replies better. This is hard to read because half your reply is in the quote

from hydrus-web.

floogulinc avatar floogulinc commented on May 29, 2024

You need to give the API key full permissions...

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

Please format your replies better. This is hard to read because half your reply is in the quote

Sorry about that, I removed extra newlines and it ended up that way.

You need to give the API key full permissions...

I'm using a dark theme on Hydrus and it masked the check boxes in the permissions tab. At first glance, I figured since all the options were in the permission box, it meant I enabled them but it was not so. I checked the boxes and now it's working on my Desktop browser.

All that's left is to get it to work on my Tablet browser. How do I allow the connection to work successfully? Like you said, it's probably an issue with firewall or router settings.

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

Ok, turns out that it's an issue with firewall cause I just disabled my firewall temporarily and was able to access the Hydrus database from my Tablet browser. How can I make an exception in the firewall to allow my Tablet.

from hydrus-web.

floogulinc avatar floogulinc commented on May 29, 2024

First make sure your network is set to private in the Windows settings.

Windows should've already asked you to add a firewall rule the first time you enabled the API, it would look like this:
rundll32_m6YWIlutBo

You may have clicked cancel or closed the window in which case the rules were added but set to block connections. If you open the WIndows Firewall settings you should see a couple rules like this:
mmc_wdkOOs8Fj4

Edit them and set them to "Allow the connection". Otherwise if the rules aren't there you can add them.

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

Sorry for the slightly delayed reply, I had some stuff I needed to do. I always set my network to private so that's set. I looked into the firewall settings and see that Hydrus (client.exe) is set to allow so that's not an issue. I messed around with the firewall settings a bit and found that when adding a new rule to allow all connections from my Tablet's IP Address, Hydrus Web works as expected from my Tablet browser.

So that's it right? or is it un-safe to allow all connections from a particular IP address?

from hydrus-web.

Articunois23 avatar Articunois23 commented on May 29, 2024

Anyways, it seems to be working right now so thanks for your help.

from hydrus-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.