Bitcoin Core RPC qvm-connect-tcp not working?

11 views
Skip to first unread message

keyandthegate

unread,
Jun 9, 2021, 8:10:04 PM6/9/21
to qubes...@googlegroups.com

After I run "qvm-connect-tcp 8332:bitcoind:8332" in the joinmarket vm

"telnet localhost 8332" works from bitcoind vm, but does not work from the joinmarket vm, where it says "Connection closed by foreign host."

I tried adding this to my bitcoin config:
rpcbind=127.0.0.1
rpcallowip=0.0.0.0/0
rpcbind=bitcoind
and then running "sudo systemctl restart bitcoind"
after reading:
https://bitcoin.stackexchange.com/questions/87943/unable-to-bind-any-endpoint-for-rpc-server
but it didn't help

Is there anywhere I can find a working example of using qvm-connect-tcp to connect to bitcoin core RPC server from another vm?

keyandthegate

unread,
Jun 9, 2021, 8:56:48 PM6/9/21
to qubes...@googlegroups.com
I tried in a fresh vm:
user@my-new-qube:~$ qvm-connect-tcp 8332:bitcoind:8332
Binding TCP 'bitcoind:8332' to 'localhost:8332'...
user@my-new-qube:~$ telnet localhost 8332
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Request refused
2021/06/09 17:50:53 socat[992] E waitpid(): child 993 exited with status 126

Connection closed by foreign host.

How would bitcoin core even know that I'm connecting from a different VM, if it should also be as if from localhost?


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

keyandthegate

unread,
Jun 10, 2021, 2:31:48 PM6/10/21
to qubes...@googlegroups.com
Wait, apparently I can't even "netcat -l 5000" and "telnet localhost 5000" in the same debian vm? Even if I clear the iptables and set the default policies to accept? Clearly I don't understand Qubes networking.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Reply all
Reply to author
Forward
0 new messages