-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I want to use RPC, and of course access to host via IPv4.
When i locally use CURL with RPC request - all is fine:
curl -s --user 'dimecoin':'XXX' --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' localhost:11930
My dimecoin.conf
dbcache=512
listen=1
bind=0.0.0.0
daemon=1
rpcthreads=16
txindex=1
rpcuser=dimecoinrpc
rpcpassword=XXX
rpcallowip=0.0.0.0/0
rpcbind=0.0.0.0:11929
#rpcbind=0.0.0.0
server=1
rpcconnect=0.0.0.0
#rpcport=11930
port=11931
addnode=35.196.157.31
addnode=177.85.98.203
addnode=101.186.114.252
addnode=109.184.21.39
addnode=121.131.77.68
addnode=125.13.35.50
addnode=125.143.153.191
...
I restart my daemon:
ExecStart=/usr/local/bin/dimecoind -datadir=/mnt/dimecoin -conf=/mnt/dimecoin/dimecoin.conf -daemon -pid=/mnt/dimecoin/dimecoin.pid
But daemon not use IPv4, even different port !!!!
root@dimecoin:~/.dimecoin# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 518/sshd
tcp 0 0 0.0.0.0:11931 0.0.0.0:* LISTEN 14361/dimecoind
tcp6 0 0 :::11930 :::* LISTEN 14361/dimecoind
udp 0 0 0.0.0.0:1900 0.0.0.0:* 466/minissdpd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 10779 466/minissdpd /var/run/minissdpd.sock
unix 2 [ ACC ] STREAM LISTENING 7783 1/init /run/systemd/private
unix 2 [ ACC ] SEQPACKET LISTENING 7803 1/init /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 7806 1/init /run/systemd/journal/stdout
unix 2 [ ACC ] STREAM LISTENING 10164 1/init /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 10167 1/init /run/acpid.socket
How to bind it to IPv4 ??
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels