Michael-128 / qBitControl

qBittorrent remote client for iOS devices.
https://x.com/qbitcontrol
GNU General Public License v3.0
193 stars 9 forks source link

[BUG] Network error when connecting via HTTP over internet #18

Closed ori2015 closed 3 months ago

ori2015 commented 3 months ago

photo_2024-07-25_17-47-01 photo_2024-07-25_17-47-04 photo_2024-07-25_17-47-08

Smartphone (please complete the following information):

I tried to download several versions I get the same error if I enter the address through the browser it does work so the address is correct

Additional context Add any other context about the problem here.

Michael-128 commented 3 months ago

Have you disabled 'Check connection' before adding the server?

ori2015 commented 3 months ago

Have you disabled 'Check connection' before adding the server?

Yes because it was the only way to go to the next level but it doesn't work there either

Michael-128 commented 3 months ago

I see in your second screenshot that the username and password fields are empty. Credentials also have to be correct to connect with qBittorrent.

ori2015 commented 3 months ago

IMG_3793

It still doesn't work and the username and password are correct in the browser

Michael-128 commented 3 months ago

Just to confirm you can log into qBittorrent from the browser on your iPhone using the credentials? Are you using qBittorrent without a password?

ori2015 commented 3 months ago

Yes, through the browser it works and I tried both with and without a password

Michael-128 commented 3 months ago

I just noticed, are you using a public ip? If so I think it's the reason why you can't connect. In such case I'll have to look info if such connections can even be made and update the app.

ori2015 commented 3 months ago

Yes, it's through an external address, I did port forwarding, why does it work through the browser and not through the app?

Michael-128 commented 3 months ago

Okay, it's not an issue on your end. The app doesn't allow HTTP connections over the internet by default. By the way are you using the AltStore PAL version or sideloaded from GitHub?

ori2015 commented 3 months ago

sideloaded From git

But just so you know in this app https://github.com/Jbcbro/qBitRemote-Public it does work so maybe you can take away the remote connection part, just the design of your app is better so I want to use it

Michael-128 commented 3 months ago

I've made a change so that HTTP connections over the internet can be made, you can download it here. Please let me know if it works.

Just be aware that HTTP connections are generally insecure as anyone can see your server requests - they are unencrypted. Using a VPN to connect to the network your server is in or getting a cheap domain with a SSL certificate would be a lot safer.

ori2015 commented 3 months ago

Wowwww thank you very much it works and don't worry I connect via VPN

Michael-128 commented 3 months ago

That's great! I hope you enjoy using the app :)

68kdmd commented 2 months ago

Safer way would be to just use tailscale (with subnet routing if needed)? Works perfectly in my case.