I have had a nextcloupi instance working in last 3 years on a RPi 3b+, but it stopped working after changing my router.
Just to clear out, I’m no expert in IT.
I’ve installed a new instance of NCP but the problem persists.
Tried fresh installations using docker and ncp image given in nextcloudpi.com, but neither worked as expected.
After installation:
I CAN access Nextcloud instance
using 192.168.1.2 in any device connected to my router
I’ve Checked that ports TCP 80 and TCP 443 are open for nextcloudpi device (192.168.1.2) in my router
I’ve tried to use DNSmasq app from the ncp webui, but that didn’t work as well.
Do I need to do something in the client machine (laptop and android).?
I’ve scratched my head so hard with this, but I’m not getting it myself and I need help.
the only part i din’t do in that recipe was the following (because i don’t understand what is needed). Do i need to do something in the client machine?
"On some modem-routers, you can set your RPi local address as the primary DNS provider. Keep your ISP DNS provider as secondary. If you can do this, no further configuration is needed.
Otherwise, you will need to configure your devices to use your Raspberry Pi’s address for DNS lookups.
For your PC, configure it in Network Manager if that is what you use, or set it up in /etc/resolv.conf like this
nameserver 192.168.1.2 # point this to your RPi local IP
nameserver 8.8.8.8 # this one should be your ISP DNS
"
on your client machine connected to your LAN/router “ricardos.duckdns.org” resolve to what address? 192.168.1.2 or your router’s internet address?
THAT.
However, a better option than replacing your router is to install OpenWRT on it, if its a supported model. The next thing that follows logically, is that you should NEVER buy a router unless you KNOW that its supported by OpenWRT, even if you don’t initially intend to use OpenWRT, because at some point the crap factory firmware will let you down and its way cheaper (free) to install OpenWRT than buy new hardware.
@Larry_Boyd that is not an option. I can’t replace the router, because it is assigned by my home internet supplier.
It has to be a way to deal with this problem
That never stopped me.
Most of those criminal ISP boxes can be bypassed in one way or another. USUALLY you can completely replace them EVEN IF they have some kind of behind the scenes magic going on that makes it difficult. In EVERY case, you can reconfigure the router in “bridge” mode, which will result in the public IP address being assigned to YOUR router plugged into it.
I’ll give you an example of the worst kind of nonsense pulled by ISP’s; In Canada, an ISP called “bell” provides wifi routers with the objective of stealing resources belonging to the customer in order to expand their network coverage (i.e., cell phones of people walking past your house on the street will connect through YOUR router!!!). They try to pretend that there is something special about these routers by having them tag ip packets with vlan id 35. Most consumer hardware can’t replicate that, but with openwrt, its trivial. Network → Switch, find the vlan where the WAN port is connected, switch the ID to 35 and switch tagging to on.
But like I said, even if you can’t find those details, you can DEFINITELY set it to bridge mode.
@Larry_Boyd that is beyond my capabilities, and i’m not interested in buying another equipment to add to the existing one. There must be a way via software.
that’s the situation described in the dnsmasq tutorial. your router won’t allow you to route a packet from inside to it’s external ip and back to your nextcloud.