Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.
  • 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?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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
share|improve this answer
    
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 2: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 3:09
    
It is working now! I forgot that I had to setup tunneling. Thank's! –  01BTC10 Feb 24 '12 at 3:49
    
bitcoind supports JSON-RPC over SSL connections (see 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 5:53
    
Thank's now I understand how to make it work properly! –  01BTC10 Feb 24 '12 at 16:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.