question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Electrum does not listen on any ports for its JSON RPC

See original GitHub issue

I did everything that was documented, including:

$ electrum daemon
$ electrum setconfig rpcport 7777
$ electrum load_wallet

I restarted, I tried the latest git version as well, but it just simply does not listen on anything besides the given payserver_address. I double checked with ss -tunlp, and it is only listening to one port, which is exactly that, but no RPC.

That said, when I type

$ electrum daemon -d
$ electrum getconfig rpcport

then I do get back 7777, but I get connection refused to it when I try to connect to it using, say, curl.

There is ~/.electrum/daemon_rpc_socket, so could it be the case that it uses UNIX socket files instead? ~/.electrum/daemon also has the content ('unix', '/home/user/.electrum/daemon_rpc_socket', 1652435742.997301), so it must be. Any ideas as to why, or how to make it listen on 127.0.0.1:7777?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
SomberNightcommented, May 13, 2022

Indeed by default the daemon uses unix sockets, you can do:

$ electrum setconfig rpcsock tcp

Alternatively, if you set both rpchost and rpcport, then it switches to tcp automatically. I’ve now relaxed this requirement in https://github.com/spesmilo/electrum/commit/641c3e23a4aa6d4c6464c2d990a8eef0c02f7eb7 so that it’s enough to set rpcport.

0reactions
odiferousmintcommented, May 13, 2022

Thank you for your responses and help! 😃 Now I can get to work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electrum client in daemon mode not listening on configured ...
I checked with netstat and it was listening on expected port. In this example I used public 'any' host but it defaults to...
Read more >
Connecting to electrs server from other machine #71 - GitHub
Now I want to connect it from my home by command: electrum-3.2.3.exe --oneserver --server=X.X.X.X:50001:t Unfortunately it won't connect.
Read more >
Query Electrum from website via json-rpc: connection refused
I would like to query electron via stratum/json-rpc from the webserver. However, Electrum only accepts connections from localhost, not from 0.0.
Read more >
RPC Interface — ElectrumX ElectrumX 1.20.2 documentation
RPC Interface¶. You can query the status of a running server, and affect its behaviour by sending JSON RPC commands to the LocalRPC...
Read more >
JSONRPC reverse proxy to electrum server not working - Help
* Connected to electrs.x.x (x.x.x.x) port 50002 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found