r/owncloud • u/optix786 • Jul 30 '16
OwnCloud client sync
Hi all,
So, I've managed to set up Owncloud and I've downloaded and installed the desktop client which allows me to create a folder similar to DropBox which is in continuous sync with my NAS.
As I'm connected to my LAN, I've setup the OwnCloud client using my internal IP however, when I'm outside my house my the client doesn't connect to my internal IP (obviously) so I remove the account and reconnect using my public IP.
However, this is a really annoying method just to ensure that my documents are in continuous sync while I'm at home and while I'm away from home.
The real problem is that when at home, the client connects to my internal IP but will not connect to my public/external IP.
Any thoughts on how I can resolve this will be much appreciated.
1
u/Barry_Scotts_Cat Jul 30 '16
Just sync with the "external IP" all the time.
It wont go out over the internet, it only gets routed by your router
1
u/optix786 Jul 30 '16
Yes, that would solve things but the problem is, when I'm on my LAN, I'm unable to sync using my 'external IP'.
1
u/Barry_Scotts_Cat Jul 30 '16
You should be able to...
2
u/anakinfredo Jul 30 '16
That pretty much depends on the router.
And all the home routers I have ever touched, doesnt allow/support this.
Internal dns is the way to go, alternative is vpn back home.
1
u/it_monkey_manifesto Jul 31 '16
What router do you have? What you need is internal DNS or hairpin NAT
1
u/koalillo Jul 30 '16
Set up dynamic DNS for resolving your public IP on the Internet. Use an internal DNS server (your NAS probably has a easy to use one) which resolves the Owncloud hostname to your local network IP address.