Electrum does not listen on any ports for its JSON RPC
See original GitHub issueI 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed by default the daemon uses unix sockets, you can do:
Alternatively, if you set both
rpchost
andrpcport
, 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 setrpcport
.Thank you for your responses and help! 😃 Now I can get to work!