# Is it possible to connect to nextcloud over lan?

**URL:** <https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188>\
**Category:** ℹ️ Support\
**Created:** [August 14, 2019, 11:43pm UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188 "2019-08-14T23:43:16Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![mbc0](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mbc0/32/16901_2.png) [@mbc0](https://help.nextcloud.com/u/mbc0)\
**Post date:** [August 19, 2019, 8:18am UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/21 "2019-08-19T08:18:51Z")

</div>

> [@Schmu](#):
>
> Is the direct route from your computer to the server’s IP 192.168.11.33 blocked […]? Is the server blocking traffic from specific IPs […]?

Hi, no nothing is blocked…

---

<div class="post-metadata">

**Author:** ![mbc0](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mbc0/32/16901_2.png) [@mbc0](https://help.nextcloud.com/u/mbc0)\
**Post date:** [August 19, 2019, 8:20am UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/22 "2019-08-19T08:20:30Z")

</div>

> [@KarlF12](#):
>
> Why use two subnets for different link speeds? That seems needlessly complicated.

I do this as I transfer very large files and edit video files on my server, I have 1GB for the whole house and 10gb/E from my Desktop to my server (NVME to NVME)

---

<div class="post-metadata">

**Author:** ![danb35](https://help.nextcloud.com/letter_avatar/danb35/32/5_5575768a8748004e209b776fc1b2916d.png) [@danb35](https://help.nextcloud.com/u/danb35)\
**Post date:** [August 19, 2019, 12:29pm UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/23 "2019-08-19T12:29:38Z")

</div>

Ah, a VM makes much more sense (though I prefer to have my router running on its own dedicated hardware). I’m using my pfSense box as a DNS resolver, but the same feature is available both ways–you’d need to enter a host override. See [https://docs.netgate.com/pfsense/en/latest/dns/unbound-dns-resolver.html](https://docs.netgate.com/pfsense/en/latest/dns/unbound-dns-resolver.html) or [https://docs.netgate.com/pfsense/en/latest/dns/dns-forwarder.html](https://docs.netgate.com/pfsense/en/latest/dns/dns-forwarder.html) for more information.

---

<div class="post-metadata">

**Author:** ![neropl](https://help.nextcloud.com/letter_avatar/neropl/32/5_5575768a8748004e209b776fc1b2916d.png) [@neropl](https://help.nextcloud.com/u/neropl)\
**Post date:** [August 21, 2019, 6:40pm UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/24 "2019-08-21T18:40:28Z")

</div>

I had same issue and I added local IP to Trusted Domains in Config.php

---

<div class="post-metadata">

**Author:** ![mbc0](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mbc0/32/16901_2.png) [@mbc0](https://help.nextcloud.com/u/mbc0)\
**Post date:** [August 22, 2019, 12:45am UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/25 "2019-08-22T00:45:35Z")

</div>

Hi, thanks for this, can I ask do you mean the ip of the desktop machine? Can I use wildcards?

here is my config.php (\*\*\*\*\*\* is to hide my domain) & 192.168.11.34 is my 10gb/E connection

‘trusted\_domains’ =\>  
array (  
0 =\> ‘192.168.0.33:444’,  
1 =\>‘nextcloud.\*\*\*\*\*\*\*.co.uk’,  
2 =\>‘192.168.11.34’,  
),

---

<div class="post-metadata">

**Author:** ![neropl](https://help.nextcloud.com/letter_avatar/neropl/32/5_5575768a8748004e209b776fc1b2916d.png) [@neropl](https://help.nextcloud.com/u/neropl)\
**Post date:** [August 22, 2019, 1:12pm UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/26 "2019-08-22T13:12:39Z")

</div>

I think you got it right. I think that message you get “Access forbidden  
State token does not match” means something different than I originally thought.  
I would try to go to phpmyadmin and in Nextcloud database check  
oc\_bruteforce\_attempts and delete any entry with IP you trying to connect from.  
Sorry I’m a noob with Linux and learning now so I wish I could help more.

---

<div class="post-metadata">

**Author:** ![mbc0](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mbc0/32/16901_2.png) [@mbc0](https://help.nextcloud.com/u/mbc0)\
**Post date:** [August 22, 2019, 1:26pm UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/27 "2019-08-22T13:26:32Z")

</div>

Many Thanks, it did the trick!

I had to remove the hosts file entry @Schmu advised and edit the config.php as you advised and now working with my 10gb/E connection!

Great Stuff!

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ricardo_santos/32/4999_2.png) [@Ricardo\_Santos](https://help.nextcloud.com/u/Ricardo_Santos)\
**Post date:** [April 8, 2020, 10:04pm UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/28 "2020-04-08T22:04:40Z")

</div>

> [@neropl](#):
>
> I would try to go to phpmyadmin and in Nextcloud database check  
> oc\_bruteforce\_attempts and delete any entry with IP you trying to connect from

How do I do this?  
i’m using nextcloud from a raspberrypi server

---

<div class="post-metadata">

**Author:** ![Ricardo\_Santos](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ricardo_santos/32/4999_2.png) [@Ricardo\_Santos](https://help.nextcloud.com/u/Ricardo_Santos)\
**Post date:** [April 8, 2020, 10:05pm UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/29 "2020-04-08T22:05:39Z")

</div>

how did you delete the ip 's in the oc\_bruteforce\_attempts

---

<div class="post-metadata">

**Author:** ![viper443](https://help.nextcloud.com/letter_avatar/viper443/32/5_5575768a8748004e209b776fc1b2916d.png) [@viper443](https://help.nextcloud.com/u/viper443)\
**Post date:** [April 30, 2023, 8:30am UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/30 "2023-04-30T08:30:39Z")

</div>

Thankyou this fixed the LAN speeds for me.

---

<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, 10:16am UTC](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188/31 "2024-12-04T10:16:14Z")

</div>



[Previous page](https://help.nextcloud.com/t/is-it-possible-to-connect-to-nextcloud-over-lan/58188.md?page=1)
