this post was submitted on 29 Oct 2023
25 points (85.7% liked)

Selfhosted

39921 readers
304 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi all!

I’ve had Nextcloud installed on Docker and it has been working for a while until now.

I had to change my server from wifi to Ethernet and gave it a new static IP. I also uninstalled docker and reinstalled it so I’d be starting fresh.

I have Nextcloud working and when I go to localhost:8070, Nextcloud works properly. When I use another device connected to the same network by wifi, it doesn’t work.

I made sure the config.php file has the server’s static IP address listed in the trusted domains category.

This used to work before but now after hours of troubleshooting, I’m all out of ideas and frustrated 😩 Any help is appreciated.

EDIT: My wife to stroll by and casually was all “did you check Windows Firewall?” and lo and behold, Windows Firewall chose today to block private connections on Docker Desktop backend -_-

Once I enabled it everything worked perfectly. Leaving this up here in case someone else stumbles upon this exact issue.

top 14 comments
sorted by: hot top controversial new old
[–] 9488fcea02a9@sh.itjust.works 5 points 1 year ago (1 children)

What is the error you get when you try to connect from another device? If not a webserver error, then maybe a firewall issue. Docker might do weird things to your firewall rules when you first install

[–] PerogiBoi@lemmy.ca 2 points 1 year ago (1 children)

I’ve had Docker running a Nextcloud container successfully without issues twice before but you were exactly right.

Docker for some reason unchecked “private connections” in firewall settings. Re-checking it fixed everything and my sanity is back.

[–] 9488fcea02a9@sh.itjust.works 2 points 1 year ago (1 children)

I stopped using docker because of this terrible behaviour.....

How can anyone design a container that silently rewrites the firewall rules on the host??? Makes no sense

Podman manages to work without doing this

[–] PerogiBoi@lemmy.ca 1 points 1 year ago

Ya checking windows firewall was the very last thing I had on my bingo list. It just didn’t logically make sense to me that it would work two other times without issue but the third time, my firewall settings quietly change 😆

I’ll look into podman and see if I’m smart enough to use it properly.

[–] haui_lemmy@lemmy.giftedmc.com 4 points 1 year ago (1 children)

Tbh, to troubleshoot this rather elaborate problem (many things changed) we need more info. Besides, there is a NC community on lemmy and a NC community I think on help.nexctloud.com which should have pretty easy answers. I‘ve been asking questions there a lot and they’re experts.

[–] PerogiBoi@lemmy.ca 2 points 1 year ago (1 children)

Oh good advice! I’ll subscribe to the Nextcloud community. Didn’t cross my mind that it would exist haha.

[–] haui_lemmy@lemmy.giftedmc.com 2 points 1 year ago

Always happy to help!

[–] 12bitmisfit@sh.itjust.works 4 points 1 year ago

Some wireless access points / routers restrict access to Lan devices by default. You should be able to change this.

It's also possible you have your wireless access point set up incorrectly if it isn't your main router. Is your wifi devices on a different subnet? Is the WAP running a dhcp server? Did you plug your Lan cable into the wan port on it instead of one of switching ports?

If you can ping the server from a wifi device then it's a server configuration issue. Is your NC instance binding to local host or the static ip? 0.0.0.0 would work too.

[–] smegger@aussie.zone 3 points 1 year ago (1 children)

Stupid question, but you're entering the servers_ipaddress:8070

When trying to access from a computer other than the server, Correct?

[–] PerogiBoi@lemmy.ca 2 points 1 year ago

Ya I was trying to access http://192.168.2.x.

I had been troubleshooting for hours only for my wife to stroll by and be all “did you check Windows Firewall?” and lo and behold, Windows Firewall chose today to block private connections on Docker Desktop backend -_-

Once I enabled it everything worked perfectly. Leaving this up here in case someone else stumbles upon this exact issue.

[–] rbn@feddit.ch 3 points 1 year ago (1 children)

Can you reach the server's IP in general from other PCs in your network? Or is the issue restricted to the nextcloud service?

[–] PerogiBoi@lemmy.ca 1 points 1 year ago

Ya, other services that I was running on that machine were accessible by IP address by other devices on the network, it was just Nextcloud giving me grief. Turns out the firewall decided docker was no longer friends. Everything is working great now :)

[–] gdog05@lemmy.world 2 points 1 year ago

I would check your router's device table. See if you can find your nextcloud instance. It shouldn't have a different IP given what you've done, but it still sometimes happens. Checking the router first will cut down your troubleshooting time.

[–] maiskanzler@feddit.de 2 points 1 year ago

Have a look into the logs of nc and see if it complains about a trusted proxy or similar. The ip range within a container network often changes between resstarts and that was a problem for me with my reverse proxy setup.