# Regarding the fact that there are multiple servers in the LAN, can only

**URL:** <https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707>\
**Category:** Support\
**Tags:** faq, gemini, nodes, farmer\
**Created:** [September 5, 2023, 2:30pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707 "2023-09-05T14:30:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 5, 2023, 2:30pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/1 "2023-09-05T14:30:38Z")

</div>

Regarding the fact that there are multiple servers in the LAN, can only one be used as a node  
My configuration is as follows:  
192.168.100.1  
192.168.100.2  
192.168.100.3  
192.168.100.4  
192.168.100.5

When creating a node, I created a node at 192.168.1.1 and started to synchronize, and then started drawing at 192.168.1.1

Then I started looking for 192.168.1.2 and found that if 192.168.1.2 also creates nodes, it will put pressure on the network

Is there a way to make the drawing of 2.3.4.5 directly connected to the node of 192.168.1.1, I found that it seems to be the port of 127.0.0.1:9944? Is there a way to change it to 192.168.1.1:9944?

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [September 5, 2023, 7:06pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/2 "2023-09-05T19:06:00Z")

</div>

Hello @z_W,

Thank you for reaching out on the forums!

To address your query about node/farmer configurations, you can indeed set up a farmer to connect to other nodes. Here’s a step-by-step guide on how to achieve this:

1. For your Node launch parameters, add `--rpc-external` & `--rpc-methods unsafe` parameters.
2. For your Farmer launch parameters, add `--node-rpc-url ws://192.168.1.1:9944` parameter.

However, it’s crucial to highlight that even though this configuration is feasible, it’s not necessarily recommended. The primary concern is potential latency issues between the farmers. For optimal performance, the general practice is to have a dedicated node for each farmer. Nonetheless, feel free to experiment and share your findings with the community. We appreciate your insights! 🙏

For further insights, consider checking the docker compose commands. These commands are structured in a way that mirrors the connection of a node/farmer to a distinct computer. This is especially relevant since docker containers operate in isolation, making the principle consistent. Refer to the docker documentation here: [Advanced CLI | Farm from Anywhere](https://docs.subspace.network/docs/protocol/substrate-cli/)

_If you feel this answers your question, please ensure to select_ _`Mark As Solution`_ _at the bottom of my reply_

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 7, 2023, 12:14pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/3 "2023-09-07T12:14:47Z")

</div>

Error: Networking or low-level protocol error: Connection rejected with status code: 403

Caused by:  
Connection rejected with status code: 403

In a local area network, if I use the public IP to connect, the following error will appear. Why?

---

<div class="post-metadata">

**Author:** ![Jim-Autonomys](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/jim-autonomys/32/2922_2.png) [@Jim-Autonomys](https://forum.autonomys.xyz/u/Jim-Autonomys)\
**Post date:** [September 7, 2023, 1:25pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/4 "2023-09-07T13:25:20Z")

</div>

Do you have `--rpc-cors all` set? Could you provide all the flags you are supplying to the node?

---

<div class="post-metadata">

**Author:** ![Jim-Autonomys](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/jim-autonomys/32/2922_2.png) [@Jim-Autonomys](https://forum.autonomys.xyz/u/Jim-Autonomys)\
**Post date:** [September 7, 2023, 1:32pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/5 "2023-09-07T13:32:48Z")

</div>

Oh, and do you have this set? `--no-private-ipv4`?

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 7, 2023, 2:50pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/6 "2023-09-07T14:50:05Z")

</div>

./subspace-node-ubuntu-x86\_64-skylake-gemini-3f-2023-aug-31   
–chain gemini-3f   
–execution wasm   
–blocks-pruning 256   
–state-pruning archive   
–validator   
–name “ooplay-node”   
–in-peers 2000   
–out-peers 2000   
–rpc-methods unsafe   
–unsafe-rpc-external   
–rpc-external   
–rpc-cors all   
–no-private-ipv4 \

Yes, I can connect this way, thank you

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [September 7, 2023, 2:51pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/7 "2023-09-07T14:51:58Z")

</div>

> [@Jim-Autonomys](#):
>
> Do you have `--rpc-cors all` set? Could you provide all the flags you are supplying to the node?

> [@Jim-Autonomys](#):
>
> Oh, and do you have this set? `--no-private-ipv4`?

CORS is for browsers and `--no-private-ipv4` doesn’t impact RPC. Those are important, but in different scenarios.

> [@z\_W](#):
>
> Yes, I can connect this way, thank you

BTW `--unsafe-rpc-external` is outdated, use `--rpc-external` instead and remove `--unsafe-rpc-external`.

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 7, 2023, 3:01pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/8 "2023-09-07T15:01:47Z")

</div>

Where should I get these additional parameters so that I don’t have to ask someone every time but can find them myself.

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [September 7, 2023, 3:07pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/9 "2023-09-07T15:07:30Z")

</div>

Just run an app with `--help` and it will print all the parameters and supported values for each.

---

<div class="post-metadata">

**Author:** ![Jim-Autonomys](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/jim-autonomys/32/2922_2.png) [@Jim-Autonomys](https://forum.autonomys.xyz/u/Jim-Autonomys)\
**Post date:** [September 7, 2023, 4:23pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/10 "2023-09-07T16:23:50Z")

</div>

> [@nazar-pc](#):
>
> CORS is for browsers

Why do we need it for our [Docker setup](https://github.com/subspace/subspace/blob/main/docs/farming.md#-docker-instructions)?

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [September 7, 2023, 4:36pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/11 "2023-09-07T16:36:53Z")

</div>

> [@Jim-Autonomys](#):
>
> Why do we need it for our [Docker setup](https://github.com/subspace/subspace/blob/main/docs/farming.md#-docker-instructions)?

Hm, I’m not sure we actually do, have you tried without it?

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 8, 2023, 11:25am UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/12 "2023-09-08T11:25:07Z")

</div>

After running for a while, the following prompt appears

 ![image](https://canada1.discourse-cdn.com/flex011/uploads/subspace/original/2X/5/54624a99e3830d6134d2d8c33c65899f9df2c685.jpeg)  
ERROR single\_disk\_farm{disk\_farm\_index=3}: subspace\_farmer::utils::farmer\_piece\_getter: Failed to retrieve first segment piece from node error=The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: connection closed; restart required piece\_index=3672  
2023-09-08T11:24:36.323646Z ERROR single\_disk\_farm{disk\_farm\_index=3}: subspace\_farmer::utils::farmer\_piece\_getter: Failed to retrieve first segment piece from node error=The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: connection closed; restart required piece\_index=3719  
2023-09-08T11:24:36.607200Z ERROR single\_disk\_farm{disk\_farm\_index=3}: subspace\_farmer::utils::farmer\_piece\_getter: Failed to retrieve first segment piece from node error=The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: connection closed; restart required piece\_index=3641  
2023-09-08T11:24:45.806556Z ERROR single\_disk\_farm{disk\_farm\_index=3}: subspace\_farmer::utils::farmer\_piece\_getter: Failed to retrieve first segment piece from node error=The background task been terminated because: Networking or low-level protocol error: WebSocket connection error: connection closed; restart required piece\_index=3606

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 8, 2023, 11:27am UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/13 "2023-09-08T11:27:01Z")

</div>

Can you help me take a look? What’s the problem?

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 8, 2023, 11:31am UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/14 "2023-09-08T11:31:18Z")

</div>

When 5 devices are connected to the NODE, there is no problem. Finally, when I add 13 devices, this problem will probably occur. The bandwidth of the node is not abnormal and is within the tolerance range.

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [September 8, 2023, 11:40am UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/15 "2023-09-08T11:40:36Z")

</div>

WebSocket connection from farmer to node was dropped. Is there a chance your LAN connection was dropped or node restarted? For large number of farmers you might want to increase number of RPC connections, but the default is 100, so should be fine for ~50 farmers.

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 8, 2023, 11:57am UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/16 "2023-09-08T11:57:47Z")

</div>

> [@nazar-pc](#):
>
> –help

> [@nazar-pc](#):
>
> –help

 ![image](https://canada1.discourse-cdn.com/flex011/uploads/subspace/original/2X/1/1d70511d717c23feeb505e8317bfbd9e32595e9d.png)

The following error will occur at the same time  
Is there any command that can increase these parameters?  
I typed .\subspace-farmer-windows-x86\_64-skylake-gemini-3f-2023-sep-05.exe --help and could not find all the additional parameters.

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [September 8, 2023, 12:26pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/17 "2023-09-08T12:26:54Z")

</div>

There are multiple commands there. It tells you the whole list. If you want to see options for farming, then you run `subspace-farmer farm --help` and it will tell you farming-specific options. The same works for node (it is on the node where you might need to increase number of RPC connections).

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [September 8, 2023, 3:18pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/18 "2023-09-08T15:18:08Z")

</div>

1. –max-pieces-in-sector \<MAX\_PIECES\_IN\_SECTOR\>:

What does this parameter do  
My hard disk reads faster, maybe this parameter can be configured?

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [September 8, 2023, 3:57pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/19 "2023-09-08T15:57:15Z")

</div>

It can, but it shouldn’t. There is a documentation for that option and it clearly doesn’t recommend to specify it.

---

<div class="post-metadata">

**Author:** ![pascal](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/pascal/32/1150_2.png) [@pascal](https://forum.autonomys.xyz/u/pascal)\
**Post date:** [September 9, 2023, 11:30pm UTC](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707/20 "2023-09-09T23:30:13Z")

</div>

@nazar-pc I have started some farmers in this way, but most farmers always stuck, what’s the reason? Running for 4 days, always in this status.

```auto
Recovering missing piece succeeded. missing_piece_index=2854
2023-09-09T19:14:29.261083Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece... missing_piece_index=480
2023-09-09T20:08:57.434766Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece succeeded. missing_piece_index=480
2023-09-09T20:08:57.440409Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece... missing_piece_index=3252
2023-09-09T20:51:31.333295Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece succeeded. missing_piece_index=3252
2023-09-09T20:51:31.338946Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece... missing_piece_index=2314
2023-09-09T21:33:54.590466Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece succeeded. missing_piece_index=2314
2023-09-09T21:33:54.595514Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece... missing_piece_index=4698
2023-09-09T22:01:46.579015Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece succeeded. missing_piece_index=4698
2023-09-09T22:01:46.583994Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece... missing_piece_index=1449
2023-09-09T22:45:39.242800Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece succeeded. missing_piece_index=1449
2023-09-09T22:45:39.246460Z INFO single_disk_farm{disk_farm_index=0}: subspace_farmer_components::segment_reconstruction: Recovering missing piece... missing_piece_index=1411

```

[Next page](https://forum.autonomys.xyz/t/regarding-the-fact-that-there-are-multiple-servers-in-the-lan-can-only/1707.md?page=2)
