<p>I finally found how access the node from my laptop I just adding the following to the litecoin.conf file</p>

<p>rpcallowip=0.0.0.0/0</p>

<p>I saw it in this <a href="https://bitcoin.stackexchange.com/a/72524/91350">Answer</a></p>

CC BY-SA 4.0
2019-01-16T21:27:17.120Z
2019-01-16T21:27:17.120Z
Joseratts
<p>I set up a litecoin full node in AWS. I opened ports 22, 80 and 9332. Also from my laptop I cloned this project <a href="https://github.com/janoside/btc-rpc-explorer" rel="nofollow noreferrer">https://github.com/janoside/btc-rpc-explorer</a></p>

<p>I executed on my local but unfortunately I don't reached my litecoin node but instead if I deploy the btc-rpc-explorer in the same litecoin node it works.</p>

<p>The error I got when I executed in local is the following (IP have been obfuscated)</p>

<pre><code>Unhandled Rejection at: Promise Promise {
  &lt;rejected&gt; { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
  cause: 
   { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
       at Object.exports._errnoException (util.js:1018:11)
       at exports._exceptionWithHostPort (util.js:1041:20)
       at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
     code: 'ECONNREFUSED',
     errno: 'ECONNREFUSED',
     syscall: 'connect',
     address: 'XX.XXX.XXX.XXX',
     port: 9332 },
  isOperational: true,
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: 'XX.XXX.XXX.XXX',
  port: 9332 } } reason: { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
  cause: 
   { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
       at Object.exports._errnoException (util.js:1018:11)
       at exports._exceptionWithHostPort (util.js:1041:20)
       at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
     code: 'ECONNREFUSED',
     errno: 'ECONNREFUSED',
     syscall: 'connect',
     address: 'XX.XXX.XXX.XXX',
     port: 9332 },
  isOperational: true,
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: 'XX.XXX.XXX.XXX',
  port: 9332 } stack: Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
Using exchange rate: 30.3812015012 USD/Litecoin starting at Sun Jan 13 2019 22:54:28 GMT+0100 (CET)
</code></pre>

<p>Do you know what I need to do to access the litecoin node from my local computer using this btc-rpc-explorer project? Thanks in advance</p>

<p>UPDATE: command netstat -tnlpu
Return this:
command netstat -tnlup
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name<br>
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -<br>
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -<br>
tcp6       0      0 :::22                   :::*                    LISTEN      -<br>
udp        0      0 127.0.0.53:53           0.0.0.0:*                           -<br>
udp        0      0 172.26.6.153:68         0.0.0.0:*                           -</p>

<p>And in the AWS rules I have specified to let connections from ports: 22, 80, 9332. Any idea?</p>

CC BY-SA 4.0
2019-01-15T10:46:42.083Z
Is the node fully synced? If not, you should wait. Could you post here the listening ports on the node ? \# netstat -tnlpu
FabioM
<json-rpc><litecoin><full-node><node.js>
can not access via RPC to litecoin node
Joseratts
# can not access via RPC to litecoin node

(Asked by: username_0 on 2019-01-13)

I set up a litecoin full node in AWS. I opened ports 22, 80 and 9332. Also from my laptop I cloned this project https://github.com/janoside/btc-rpc-explorer
I executed on my local but unfortunately I don't reached my litecoin node but instead if I deploy the btc-rpc-explorer in the same litecoin node it works.
The error I got when I executed in local is the following (IP have been obfuscated)
Unhandled Rejection at: Promise Promise {
   { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
  cause: 
   { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
       at Object.exports._errnoException (util.js:1018:11)
       at exports._exceptionWithHostPort (util.js:1041:20)
       at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
     code: 'ECONNREFUSED',
     errno: 'ECONNREFUSED',
     syscall: 'connect',
     address: 'XX.XXX.XXX.XXX',
     port: 9332 },
  isOperational: true,
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: 'XX.XXX.XXX.XXX',
  port: 9332 } } reason: { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
  cause: 
   { Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
       at Object.exports._errnoException (util.js:1018:11)
       at exports._exceptionWithHostPort (util.js:1041:20)
       at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
     code: 'ECONNREFUSED',
     errno: 'ECONNREFUSED',
     syscall: 'connect',
     address: 'XX.XXX.XXX.XXX',
     port: 9332 },
  isOperational: true,
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: 'XX.XXX.XXX.XXX',
  port: 9332 } stack: Error: connect ECONNREFUSED XX.XXX.XXX.XXX:9332
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
Using exchange rate: 30.3812015012 USD/Litecoin starting at Sun Jan 13 2019 22:54:28 GMT+0100 (CET)

Do you know what I need to do to access the litecoin node from my local computer using this btc-rpc-explorer project? Thanks in advance
UPDATE: command netstat -tnlpu
Return this:
command netstat -tnlup
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp6       0      0 :::22                   :::*                    LISTEN      -
udp        0      0 127.0.0.53:53           0.0.0.0:*                           -
udp        0      0 172.26.6.153:68         0.0.0.0:*                           -
And in the AWS rules I have specified to let connections from ports: 22, 80, 9332. Any idea?

**Tags:** json-rpc, litecoin, full-node, node.js

> **Comments:**
> **username_1**: Is the node fully synced? If not, you should wait. Could you post here the listening ports on the node ? \# netstat -tnlpu  

---

## 1 answers

### Answer by username_0 on 2019-01-16. Score: 1

I finally found how access the node from my laptop I just adding the following to the litecoin.conf file

rpcallowip=0.0.0.0/0

I saw it in this [Answer](https://bitcoin.stackexchange.com/a/72524/91350)


---

