socket hang up error

+2 votes

let multichain = require("multichain-node")({

port: 7441,

host: '172.17.0.1',

user: "multichainrpc",

pass: "856CNEUqTDk5pcCrHpMg8W79xgRwRdjZV2iedzL9L4Jt"

});

console.log(multichain)

multichain.getInfo((err, info) => {

if(err){

throw err;

}

console.log(info);

})

i tried this code but giving me error socket hang up,

multichain.conf code is here

rpcuser=multichainrpc
rpcpassword=856CNEUqTDk5pcCrHpMg8W79xgRwRdjZV2iedzL9L4Jt

and my multichain address is here

multichaind chain1@172.17.0.1:7441

please guide me about this

 

related to an answer for: Socket Hang up Error
asked Apr 30, 2020 by anonymous

1 Answer

0 votes

This is likely the usual rpcallowip issue – please search this Q&A for rpcallowip and you'll find lots of answers.

answered May 1, 2020 by MultiChain
...