<p>Yes, sort of.</p>

<p>In regtest mode, mining is made much easier, and by default it doesn't attempt to connect to any peers to exchange blocks or transactions.  But your friend can run another client in regtest mode and explicitly connect to yours, and then you will share the same block chain and can exchange transactions.</p>

<p>You will need to ensure that your firewall allows incoming TCP port 18444 from the Internet (or at least from your friend's IP address).  You'll also need your external IP address; say it is 1.2.3.4.  (DNS also works if your machine has a DNS name.)  Then you can run your client with <code>-regtest</code>, and your friend can run hers with <code>-regtest -connect=1.2.3.4</code>.  Once you have synced your blockchain with each other, you can send transactions to each other just like you were on the real Bitcoin network.  (Of course, nobody will see them except you.)
Note that in order for the transactions to be confirmed, one or both of you will have to use <code>setgenerate</code> to mine some more blocks.</p>

<p>Note also that if both of you are mining, a temporary network failure could lead to you quickly making a big fork in your block chain.  This will make the Bitcoin client unhappy.  </p>

CC BY-SA 3.0
2014-09-17T03:31:39.527Z
2014-09-17T03:31:39.527Z
Nate Eldredge
<p>I am running Bitcoin in <strong>regtest</strong> mode. Is it possible to send bitcoins generated in regtest mode to a friend ? (I only want to test it). Is it possible ?</p>

CC BY-SA 3.0
2014-09-16T22:19:46.440Z
I do not have enough time to make a complete answer now, but you can look [here](https://bitcoin.org/en/developer-examples#regtest-mode). It seems more than possible!
Mathias711
CC BY-SA 3.0
2014-09-17T01:52:12.377Z
I believe you can send to an address but since there are no  connected peers I don't think you can send to another person.
Mark S.
<bitcoind><sell-bitcoins><regtest>
Can I transfer bitcoins generated in regtest mode to a friend?
somesh
# Can I transfer bitcoins generated in regtest mode to a friend?

(Asked by: username_0 on 2014-09-16)

I am running Bitcoin in **regtest** mode. Is it possible to send bitcoins generated in regtest mode to a friend ? (I only want to test it). Is it possible ?

**Tags:** bitcoind, sell-bitcoins, regtest

> **Comments:**
> **username_1**: I do not have enough time to make a complete answer now, but you can look [here](https://bitcoin.org/en/developer-examples#regtest-mode). It seems more than possible!  
> **username_2**: I believe you can send to an address but since there are no  connected peers I don't think you can send to another person.  

---

## 1 answers

### Answer by username_3 on 2014-09-17. Score: 2 | Accepted answer

Yes, sort of.

In regtest mode, mining is made much easier, and by default it doesn't attempt to connect to any peers to exchange blocks or transactions. But your friend can run another client in regtest mode and explicitly connect to yours, and then you will share the same block chain and can exchange transactions.

You will need to ensure that your firewall allows incoming TCP port 18444 from the Internet (or at least from your friend's IP address). You'll also need your external IP address; say it is 1.2.3.4. (DNS also works if your machine has a DNS name.) Then you can run your client with `-regtest`, and your friend can run hers with `-regtest -connect=1.2.3.4`. Once you have synced your blockchain with each other, you can send transactions to each other just like you were on the real Bitcoin network. (Of course, nobody will see them except you.)
Note that in order for the transactions to be confirmed, one or both of you will have to use `setgenerate` to mine some more blocks.

Note also that if both of you are mining, a temporary network failure could lead to you quickly making a big fork in your block chain. This will make the Bitcoin client unhappy.


---

