# Having troubles accessing nextcloud files through vpn

**URL:** <https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217>\
**Category:** ℹ️ Support\
**Tags:** network, nc15\
**Created:** [May 30, 2019, 5:48pm UTC](https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217 "2019-05-30T17:48:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uncleeugene](https://help.nextcloud.com/user_avatar/help.nextcloud.com/uncleeugene/32/15625_2.png) [@uncleeugene](https://help.nextcloud.com/u/uncleeugene)\
**Post date:** [May 30, 2019, 5:48pm UTC](https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217/1 "2019-05-30T17:48:07Z")

</div>

Nextcloud version 15.0.8 snap  
Operating system and version: Fully updated Manjaro.

I’m looking for help to solve the issue i faced:  
I have Nextcloud installed in my home’s network. All works absolutely fine, but i’m having troubles accessing it from outside my LAN. Because of gray ip address i can only access my home network using VPS server that routes all incoming traffic through vpn. I have forwarded port 80 as well as 22 into a tunnel and it makes its way there. In fact i can log in on ssh from the outside, also i can access nextcloud in browser, it loads up, i can see chats and listen to the music on my nextcloud using Music app. I only cannot access files. When i enter Files tab it seem to be infinitely updated. Still everything works fine when on LAN. I suppose my problem is somewhere outside nextcloud itself, but i just don’t know what to look at. Is there any other ports i have to forward or something of that kind? I tried enabling ssl but it makes no change.

---

<div class="post-metadata">

**Author:** ![stratege1401](https://help.nextcloud.com/user_avatar/help.nextcloud.com/stratege1401/32/7570_2.png) [@stratege1401](https://help.nextcloud.com/u/stratege1401)\
**Post date:** [May 30, 2019, 6:04pm UTC](https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217/2 "2019-05-30T18:04:43Z")

</div>

> [@uncleeugene](#):
>
> gray ip address

Sorry, i dont understand this.

Your redirected ports should be 22/80/443 if using https

You say:

> [@uncleeugene](#):
>
> . I only cannot access files.

This is mostly:

- an apache conf error.
- an ownership/rights problem

If it work on lan, this is an apache error, check logs

---

<div class="post-metadata">

**Author:** ![uncleeugene](https://help.nextcloud.com/user_avatar/help.nextcloud.com/uncleeugene/32/15625_2.png) [@uncleeugene](https://help.nextcloud.com/u/uncleeugene)\
**Post date:** [May 30, 2019, 6:12pm UTC](https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217/3 "2019-05-30T18:12:54Z")

</div>

Gray IP means that my home lan sits behind the ISP’s NAT and i can’t access it directly. Thank youI I will check apache log for possible clues.

---

<div class="post-metadata">

**Author:** ![ohalkhateeb](https://help.nextcloud.com/letter_avatar/ohalkhateeb/32/6_22734026db12803ebb3e059622ac3534.png) [@ohalkhateeb](https://help.nextcloud.com/u/ohalkhateeb)\
**Post date:** [May 22, 2020, 4:28pm UTC](https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217/4 "2020-05-22T16:28:17Z")

</div>

Hi,  
I’m facing the same problem have you mange to fix it ? If yes please let me what was the problem.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 9:58am UTC](https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217/5 "2024-12-04T09:58:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 3:03pm UTC](https://help.nextcloud.com/t/having-troubles-accessing-nextcloud-files-through-vpn/54217/6 "2024-12-11T15:03:37Z")

</div>


