Bitcoin Forum
November 19, 2017, 09:39:22 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Electrum client in daemon mode not listening on configured ports  (Read 146 times)
bittywil
Newbie
*
Offline Offline

Activity: 2


View Profile
August 14, 2017, 07:42:57 PM
 #1

I set up the Electrum client - not the server as shown at http://docs.electrum.org/en/latest/merchant.html

I am using Websocket support via perl socket support (from https://centos.pkgs.org/7/epel-x86_64/perl-Protocol-WebSocket-0.18-1.el7.noarch.rpm.html )  as well as the Simple Websocket Server from the above page

Electrum is an rpm installed on CentOS 7 as electrum.noarch  (x86_64) 2.9.0-1.fc26 from  https://www.rpmfind.net/linux/RPM/fedora/updates/testing/26/x86_64/e/electrum-2.9.0-1.fc26.noarch.html

I am running it command line from a shell

I opened ports 7777 and 9999 and verified they are open with the => firewall-cmd --zone=public --list-all <=  command which returns

public
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: dhcpv6-client http https ssh
  ports: 110/tcp 80/tcp 10004/tcp 21/tcp 20000/tcp 53/tcp 9999/tcp 10002/tcp 5801/tcp 10005/tcp 143/tcp 20/udp 22/tcp 10003/tcp 995/tcp 25/tcp 10000/tcp 5901/tcp 7777/tcp 21/udp 993/tcp 443/tcp 2222/tcp 587/tcp 20/tcp 10001/tcp 53/udp
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks:
  rich rules:

Electrum is not listening on them

netstat -anp | grep 7777
netstat -anp | grep 9999

returns nothing

A curl call - yields "connection refused"

electrum daemon status

returns a connected status to a server and a getbalance command returns the balance and all other commands relevant work command line

Does anyone know how to get it to listen
1511084362
Hero Member
*
Offline Offline

Posts: 1511084362

View Profile Personal Message (Offline)

Ignore
1511084362
Reply with quote  #2

1511084362
Report to moderator
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511084362
Hero Member
*
Offline Offline

Posts: 1511084362

View Profile Personal Message (Offline)

Ignore
1511084362
Reply with quote  #2

1511084362
Report to moderator
1511084362
Hero Member
*
Offline Offline

Posts: 1511084362

View Profile Personal Message (Offline)

Ignore
1511084362
Reply with quote  #2

1511084362
Report to moderator
1511084362
Hero Member
*
Offline Offline

Posts: 1511084362

View Profile Personal Message (Offline)

Ignore
1511084362
Reply with quote  #2

1511084362
Report to moderator
bittywil
Newbie
*
Offline Offline

Activity: 2


View Profile
August 15, 2017, 05:00:05 PM
 #2

[SOLVED]

It does not "listen" but after an upgrade to 2.9.3 (via Rawhide rpmfind) and an install of python-jsonrpclib.noarch => the JSON-RPC v2.0 client library for Python; and the PyQt4-webkit.x86_64 0:4.10.1-2.el7  => which installed 31 dependencies => and the python2-pip-8.1.2-5.el7.noarch.rpm it works.

electrum addrequest .14 -m "this is a test" returns
{
    "URI": "bitcoin:1GHHojoC4Ai1SPMN3YoNzemLNaaj2XFHKc?amount=0.14&r=https://electrum.org//r/req/6/a/6a32d881c0/6a32d881c0",
    "address": "1GHHojoC4Ai1SPMN3YoNzemLNaaj2XFHKc",
    "amount": 14000000,
    "amount (BTC)": "0.14",
    "exp": null,
    "id": "6a32d881c0",
    "index_url": "https://electrum.org//r/index.html?id=6a32d881c0",
    "memo": "this is a test",
    "request_url": "https://electrum.org//r/req/6/a/6a32d881c0/6a32d881c0",
    "status": "Pending",
    "time": 1502814157,
    "websocket_port": 9999,
    "websocket_server": "localhost"

showing the websocket port and server name above last two lines

and a curl call works under JSONRPC yielding as example below

curl --data-binary '{"id":"curltext","method":"getbalance","params":[]}' http://0.0.0.0:7777
{"jsonrpc": "2.0", "result": {"confirmed": "0"}, "id": "curltext"}[root@main ~]#

BUT . . .  neither port shows in rpcinfo or netstat


Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!