6
  • I edited litecoin.conf file...

To this:

testnet=0
rcpuser=user
rpcpassowrd=pass
rpcport=9332
server=1

I use minerd with litecoind and when I try to connect to the local machine 127.0.0.1:9332 everything work fine. When I try to connect another workers from the LAN it cant connect to litecoind.

When I scan the port of the machine running litecoind, the port 9332 is closed.

How can I remote connect to the litecoind daemon via LAN?

morsecoder
  • 14,008
  • 2
  • 42
  • 92
01BTC10
  • 353
  • 4
  • 10

1 Answers1

7

If you want to allow connections from any machine, use:

rpcallowip=*

If you want to allow connections from one specific IP address, put that IP address instead of *:

rpcallowip=192.168.0.101

You can have as many of these lines as you like. Use one for each IP address you want to allow. And wildcards are also allowed:

rpcallowip=192.168.0.*
rcpallowip=10.*
rcpallowip=192.168.*.100
Chris Moore
  • 14,745
  • 6
  • 65
  • 87
  • 1
    I already tried this solution but the daemon is only accessible via 127.0.0.1 If I try to connect via LAN it is refused. – 01BTC10 Feb 24 '12 at 02:53
  • Does it work with rpcallowip=*? If not, maybe it's a firewall issue. Do you know which kind of firewall you have on the machine running bitcoind? Check netstat -l output on the bitcoind machine. You should see that it's listen on 0.0.0.0:8332 if you supplied any kind of rpcallowip argument. When I try to connect remotely without any rpcallowip argument I get "error: couldn't connect to server". If I try connecting from an IP that's different than the rpcallowip address I see "error: server returned HTTP error 403". – Chris Moore Feb 24 '12 at 03:09
  • It is working now! I forgot that I had to setup tunneling. Thank's! – 01BTC10 Feb 24 '12 at 03:49
  • bitcoind supports JSON-RPC over SSL connections (see https://en.bitcoin.it/wiki/Enabling_SSL_on_original_client_daemon), so you don't need to set up a separate tunnel if you don't want to – Chris Moore Feb 24 '12 at 05:53
  • Thank's now I understand how to make it work properly! – 01BTC10 Feb 24 '12 at 16:32