<p>I don't know why this happened several times. But in the end the config worked with <code>true</code> and now my nodes show only one connection and this is the private server.</p>

CC BY-SA 4.0
2020-11-28T12:33:53.720Z
2020-11-28T12:33:53.720Z
bomben
<p>I don't know id this is relevant in this case, but I was facing a similar issue.</p>
<p>I read this post, and when I invoked with <code>-1 --server &lt;host:port&gt;</code> the connection worked.</p>
<p>Turned out the issue was that my <code>server</code> value in the config was postfixed with <code>:s</code> which specified an <code>ssl</code> connection, whereas the server I set up was unencrypted tcp. (<code>:t</code>).</p>
<p>Even if this is not what happened to you, perhaps it can be useful to someone else if they read this with the same issue I was facing.</p>

CC BY-SA 4.0
2024-07-16T01:45:59.053Z
2024-07-16T01:45:59.053Z
lash
<p>I want to connect my Electrum wallet app to my private Electrs server in my local LAN which is also reachable via onion. I want to just use this one server, no other server. My <code>~/.electrum/config</code> is</p>
<pre><code>{
    &quot;alias&quot;: &quot;&quot;,
    &quot;auto_connect&quot;: false,
    &quot;blockchain_preferred_block&quot;: {
        &quot;hash&quot;: &quot;000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f&quot;,
        &quot;height&quot;: 0
    },
    &quot;check_updates&quot;: true,
    &quot;config_version&quot;: 3,
    &quot;gui_last_wallet&quot;: &quot;/Users/$USER/.electrum/wallets/default_wallet&quot;,
    &quot;is_maximized&quot;: false,
    &quot;oneserver&quot;: false,
    &quot;proxy&quot;: &quot;socks5:127.0.0.1:9050::&quot;,
    &quot;recently_open&quot;: [
        &quot;/Users/$USER/.electrum/wallets/default_wallet&quot;
    ],
    &quot;rpcpassword&quot;: &quot;&quot;,
    &quot;rpcuser&quot;: &quot;&quot;,
    &quot;server&quot;: &quot;something.onion:50002:s&quot;,
    &quot;show_channels_tab&quot;: true
}
</code></pre>
<p>This seems to work fine in the sense that I am connected. But I have a lot of nodes in my list under the &quot;Network&quot; settings in Electrum. And this is because the <code>oneserver</code> property is set to <code>false</code>. If I try to set it to <code>true</code> in the config manually, Electrum starts and works fine but the config file is reverted to its old state with <code>false</code> in it.</p>
<p>How can I make sure this works?</p>

<electrum>
How to make sure Electrum connects to my private Electrs server and to no other server?
bomben
# How to make sure Electrum connects to my private Electrs server and to no other server?

(Asked by: username_0 on 2020-11-28)

I want to connect my Electrum wallet app to my private Electrs server in my local LAN which is also reachable via onion. I want to just use this one server, no other server. My `~/.electrum/config` is

```
{
    "alias": "",
    "auto_connect": false,
    "blockchain_preferred_block": {
        "hash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
        "height": 0
    },
    "check_updates": true,
    "config_version": 3,
    "gui_last_wallet": "/Users/$USER/.electrum/wallets/default_wallet",
    "is_maximized": false,
    "oneserver": false,
    "proxy": "socks5:127.0.0.1:9050::",
    "recently_open": [
        "/Users/$USER/.electrum/wallets/default_wallet"
    ],
    "rpcpassword": "",
    "rpcuser": "",
    "server": "something.onion:50002:s",
    "show_channels_tab": true
}

```

This seems to work fine in the sense that I am connected. But I have a lot of nodes in my list under the "Network" settings in Electrum. And this is because the `oneserver` property is set to `false`. If I try to set it to `true` in the config manually, Electrum starts and works fine but the config file is reverted to its old state with `false` in it.

How can I make sure this works?

**Tags:** electrum


---

## 2 answers

### Answer by username_0 on 2020-11-28. Score: 0

I don't know why this happened several times. But in the end the config worked with `true` and now my nodes show only one connection and this is the private server.


---

### Answer by username_1 on 2024-07-16. Score: 0

I don't know id this is relevant in this case, but I was facing a similar issue.

I read this post, and when I invoked with `-1 --server <host:port>` the connection worked.

Turned out the issue was that my `server` value in the config was postfixed with `:s` which specified an `ssl` connection, whereas the server I set up was unencrypted tcp. (`:t`).

Even if this is not what happened to you, perhaps it can be useful to someone else if they read this with the same issue I was facing.


---

