Post
Topic
Board Electrum
Re: Query Electrum from website via json-rpc: connection refused
by
drsnuggles
on 25/09/2016, 19:46:55 UTC
Alright, found a workaround to forward data from 192.168.1.60 to 127.0.0.1.

Code:
sudo sysctl -w net.ipv4.conf.eth0.route_localnet=1
sudo iptables -t nat -I PREROUTING -p tcp -d 192.168.1.60/32 --dport 7777 -j DNAT --to-destination 127.0.0.1:7777


Important: to check the result, go to another pc and query:
Code:
curl --data-binary '{"id":"curltext","method":"getbalance","params":[]}' http://192.168.1.60:7777


I checked on the same pc as Electrum runs, and apparently that doesn't work.

Next step is to secure the line Smiley.