<p>The default port for bitcoin regtest is <code>18444</code>. You can set a custom port with <code>port=&lt;port&gt;</code> in your <code>bitcoin.conf</code> or by passing <code>-port=&lt;port&gt;</code> as argument.</p>

CC BY-SA 4.0
2018-07-08T17:00:27.987Z
2019-07-12T19:54:22.717Z
2019-07-12T19:54:22.717Z
0xb10c
<p>I want to connect to a local node that I have set up in regtest mode using bitcoind. The node I am connection from is non bitcoind and I need to set the port that I want the peer discovery to take place from. What parameters do I need to set in my bitcoin.conf for bitcoind?</p>

<bitcoind><regtest>
Connecting to Regtest
PJ Fitzpatrick
# Connecting to Regtest

(Asked by: username_0 on 2018-07-08)

I want to connect to a local node that I have set up in regtest mode using bitcoind. The node I am connection from is non bitcoind and I need to set the port that I want the peer discovery to take place from. What parameters do I need to set in my bitcoin.conf for bitcoind?

**Tags:** bitcoind, regtest


---

## 1 answers

### Answer by username_1 on 2018-07-08. Score: 1 | Accepted answer

The default port for bitcoin regtest is `18444`. You can set a custom port with `port=<port>` in your `bitcoin.conf` or by passing `-port=<port>` as argument.


---

