<p>I was able to fix this issue by going to <a href="http://127.0.0.1:7657/configclients" rel="nofollow noreferrer">http://127.0.0.1:7657/configclients</a> in the browser and enabling &quot;SAM application bridge&quot;.</p>
<p>This was disabled by default.</p>

CC BY-SA 4.0
2022-02-28T04:20:38.247Z
2022-02-28T04:20:38.247Z
m10b
<p>Can you reach anything over I2P? For example, can you browse <a href="http://git.idk.i2p/" rel="nofollow noreferrer">http://git.idk.i2p/</a> using the router's http proxy?</p>

CC BY-SA 4.0
2021-11-22T15:22:46.870Z
Thank you for coming here @vasild! You are very welcome! Attempts to clarify the question should be in the comments to the question like @Prayank has done rather than posting as an answer. Feel free to edit your answer when we work out what the issue is.
Michael Folkson
CC BY-SA 4.0
2021-11-22T22:19:38.263Z
Yes. I was able to reach this site (http://git.idk.i2p/) using the steps described in https://geti2p.net/en/about/browser-config .
m10b
CC BY-SA 4.0
2021-11-23T16:56:31.197Z
I cannot post a comment to the question because "You must have 50 reputation to comment" (but apparently I can post a comment here to my answer).
vasild
CC BY-SA 4.0
2021-11-24T10:02:33.513Z
Hello, can you follow the steps from here: https://github.com/vasild/bitcoin/pull/4#issuecomment-977719186 (I can't write long comments here and also all new lines are removed and thus formatting is screwed).
vasild
CC BY-SA 4.0
2021-11-25T08:22:15.127Z
@vasild I updated the question text with the result of the tests described in the link you sent.
m10b
CC BY-SA 4.0
2021-11-25T16:55:46.240Z
So it's not possible to create a session, hmm. I never experienced this. It looks like your I2P router is somehow not fully connected to the I2P network or broken in some other way. Can you take this to the I2P developers? The second test is meaningless without a session because it tries to use the session "mysession1" created in the first test in the "STREAM CONNECT" command. However I see a few strange things in its output: 1. you got "NAME=ME" in the "NAMING REPLY" I think it should be "NAME=git.idk.i2p" and 2. using a nonexistent session "mysession1" in the "STREAM CONNECT" did not
vasild
CC BY-SA 4.0
2021-11-25T16:58:07.337Z
did not produce STREAM STATUS RESULT=INVALID_ID MESSAGE="STREAM SESSION ID mysession1 does not exist" but instead produced "CANT_REACH_PEER". It takes ~5 seconds for me for SESSION CREATE to return a result and create the session, it is talking to the I2P network. Maybe the session was also created in your case but it took way tooo long?
vasild
CC BY-SA 4.0
2021-11-25T16:59:55.423Z
Which version of I2P router are you using?
vasild
CC BY-SA 4.0
2021-11-25T18:30:11.400Z
i2pd version 2.29.0 (0.9.43) - Boost version 1.71.0 - OpenSSL 1.1.1d  10 Sep 2019
Ubuntu 20.04 on VMWare. Does it make a difference to use a virtual machine?

Does I2P require opening a port on the router?
m10b
CC BY-SA 4.0
2021-11-26T08:03:31.243Z
2.29 is from Oct 2019, 2+ years old. The latest one is 2.39. The old one should work, but I have no other suggestion, other than to try a newer version :( ... or the java one from geti2p.net. Boost, OpenSSL and VM/or-no-VM should be irrelevant. "Does I2P require opening a port on the router?" -- no.
vasild
CC BY-SA 4.0
2021-11-22T14:17:00.557Z
2021-11-22T14:17:00.557Z
vasild
<p>I configured the I2P according to this <a href="https://bitcoin.stackexchange.com/a/103403/128959">answer</a> on Ubuntu 20.04 and 21.10.</p>
<p>But I have been getting the following error when I try to connect to any I2P peer:</p>
<pre><code>I2P: Error connecting to a5qsnv3maw77mlmmzlcglu6twje6ttctd3fhpbfwcbpmewx6fczq.b32.i2p:0: Receive timeout (received 0 bytes without terminator before that)
</code></pre>
<p>This error occurs for any peer, not just the above.</p>
<p>How can I find the reason for this error and fix it?</p>
<hr />
<p>UPDATE: Adding information requested by <a href="https://bitcoin.stackexchange.com/users/103136/prayank">Prayank</a>.</p>
<pre><code>$ sudo ufw status verbose
Status: inactive
</code></pre>
<pre><code>$ ss -nlt
State                Recv-Q               Send-Q                               Local Address:Port                                Peer Address:Port               Process               
LISTEN               0                    128                                      127.0.0.1:7656                                     0.0.0.0:*       
...
</code></pre>
<hr />
<p>UPDATE 2: I was able to reach the website git.idk.i2p using the steps described in <a href="http://geti2p.net/en/about/browser-config" rel="nofollow noreferrer">http://geti2p.net/en/about/browser-config</a> .</p>
<hr />
<p>UPDATE 3: Results of executing the steps: <a href="https://github.com/vasild/bitcoin/pull/4" rel="nofollow noreferrer">https://github.com/vasild/bitcoin/pull/4</a></p>
<pre><code>$ telnet 127.0.0.1 7656
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HELLO VERSION MIN=3.1 MAX=3.1
HELLO REPLY RESULT=OK VERSION=3.1
SESSION CREATE STYLE=STREAM ID=mysession1 DESTINATION=TRANSIENT SIGNATURE_TYPE=7
&lt;no-response&gt;
</code></pre>
<p>According to the text, a response (SESSION STATUS RESULT=OK) was expected. This didn't happen. No response was received.</p>
<p>Result of the other test.</p>
<pre><code>$ telnet 127.0.0.1 7656
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HELLO VERSION MIN=3.1 MAX=3.1
HELLO REPLY RESULT=OK VERSION=3.1
NAMING LOOKUP NAME=git.idk.i2p
NAMING REPLY RESULT=OK NAME=ME VALUE=80...AAA==
STREAM CONNECT ID=mysession1 DESTINATION=80...AAA== SILENT=false
STREAM STATUS RESULT=CANT_REACH_PEER
</code></pre>
<p>Received <code>CANT_REACH_PEER</code> instead of <code>STREAM STATUS RESULT=OK</code>.</p>

CC BY-SA 4.0
2021-11-22T15:23:21.870Z
@vasild also asks "Can you reach anything over I2P? For example, can you browse http://git.idk.i2p/ using the router's http proxy?"
Michael Folkson
<bitcoin-core><bitcoind><network><i2p>
Unable to use I2P on Ubuntu 20.04 / 21.04
m10b
# Unable to use I2P on Ubuntu 20.04 / 21.04

(Asked by: username_0 on 2021-11-21)

I configured the I2P according to this [answer](https://bitcoin.stackexchange.com/a/103403/128959) on Ubuntu 20.04 and 21.10.

But I have been getting the following error when I try to connect to any I2P peer:

```
I2P: Error connecting to a5qsnv3maw77mlmmzlcglu6twje6ttctd3fhpbfwcbpmewx6fczq.b32.i2p:0: Receive timeout (received 0 bytes without terminator before that)

```

This error occurs for any peer, not just the above.

How can I find the reason for this error and fix it?

---

UPDATE: Adding information requested by [Prayank](https://bitcoin.stackexchange.com/users/103136/prayank).

```
$ sudo ufw status verbose
Status: inactive

```

```
$ ss -nlt
State                Recv-Q               Send-Q                               Local Address:Port                                Peer Address:Port               Process               
LISTEN               0                    128                                      127.0.0.1:7656                                     0.0.0.0:*       
...

```

---

UPDATE 2: I was able to reach the website git.idk.i2p using the steps described in <http://geti2p.net/en/about/browser-config> .

---

UPDATE 3: Results of executing the steps: <https://github.com/username_2/bitcoin/pull/4>

```
$ telnet 127.0.0.1 7656
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HELLO VERSION MIN=3.1 MAX=3.1
HELLO REPLY RESULT=OK VERSION=3.1
SESSION CREATE STYLE=STREAM ID=mysession1 DESTINATION=TRANSIENT SIGNATURE_TYPE=7
<no-response>

```

According to the text, a response (SESSION STATUS RESULT=OK) was expected. This didn't happen. No response was received.

Result of the other test.

```
$ telnet 127.0.0.1 7656
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HELLO VERSION MIN=3.1 MAX=3.1
HELLO REPLY RESULT=OK VERSION=3.1
NAMING LOOKUP NAME=git.idk.i2p
NAMING REPLY RESULT=OK NAME=ME VALUE=80...AAA==
STREAM CONNECT ID=mysession1 DESTINATION=80...AAA== SILENT=false
STREAM STATUS RESULT=CANT_REACH_PEER

```

Received `CANT_REACH_PEER` instead of `STREAM STATUS RESULT=OK`.

**Tags:** bitcoin-core, bitcoind, network, i2p

> **Comments:**
> **username_1**: @username_2 also asks "Can you reach anything over I2P? For example, can you browse http://git.idk.i2p/ using the router's http proxy?"  

---

## 2 answers

### Answer by username_0 on 2022-02-28. Score: 2 | Accepted answer

I was able to fix this issue by going to <http://127.0.0.1:7657/configclients> in the browser and enabling "SAM application bridge".

This was disabled by default.


---

### Answer by username_2 on 2021-11-22. Score: 3

Can you reach anything over I2P? For example, can you browse <http://git.idk.i2p/> using the router's http proxy?

> **Comments:**
> **username_1**: Thank you for coming here @username_2! You are very welcome! Attempts to clarify the question should be in the comments to the question like @Prayank has done rather than posting as an answer. Feel free to edit your answer when we work out what the issue is.  
> **username_0**: Yes. I was able to reach this site (http://git.idk.i2p/) using the steps described in https://geti2p.net/en/about/browser-config .  
> **username_2**: I cannot post a comment to the question because "You must have 50 reputation to comment" (but apparently I can post a comment here to my answer).  
> **username_2**: Hello, can you follow the steps from here: https://github.com/username_2/bitcoin/pull/4#issuecomment-977719186 (I can't write long comments here and also all new lines are removed and thus formatting is screwed).  
> **username_0**: @username_2 I updated the question text with the result of the tests described in the link you sent.  
> **username_2**: So it's not possible to create a session, hmm. I never experienced this. It looks like your I2P router is somehow not fully connected to the I2P network or broken in some other way. Can you take this to the I2P developers? The second test is meaningless without a session because it tries to use the session "mysession1" created in the first test in the "STREAM CONNECT" command. However I see a few strange things in its output: 1. you got "NAME=ME" in the "NAMING REPLY" I think it should be "NAME=git.idk.i2p" and 2. using a nonexistent session "mysession1" in the "STREAM CONNECT" did not  
> **username_2**: did not produce STREAM STATUS RESULT=INVALID_ID MESSAGE="STREAM SESSION ID mysession1 does not exist" but instead produced "CANT_REACH_PEER". It takes ~5 seconds for me for SESSION CREATE to return a result and create the session, it is talking to the I2P network. Maybe the session was also created in your case but it took way tooo long?  
> **username_2**: Which version of I2P router are you using?  
> **username_0**: i2pd version 2.29.0 (0.9.43) - Boost version 1.71.0 - OpenSSL 1.1.1d  10 Sep 2019 Ubuntu 20.04 on VMWare. Does it make a difference to use a virtual machine?  Does I2P require opening a port on the router?  
> **username_2**: 2.29 is from Oct 2019, 2+ years old. The latest one is 2.39. The old one should work, but I have no other suggestion, other than to try a newer version :( ... or the java one from geti2p.net. Boost, OpenSSL and VM/or-no-VM should be irrelevant. "Does I2P require opening a port on the router?" -- no.  

---

