I'm trying to connect to a node running on an ubuntu server from my local machine using node js and gives me this error
throw err;
^
Error: getaddrinfo EAI_FAIL chain-test-1@34.229.191.106:7221
at Object.exports._errnoException (util.js:1018:11)
at errnoException (dns.js:33:15)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
My code is:
let multichain = require("multichain-node")({
port: 7221,
host: 'chain-test-1@34.229.191.106',
user: "multichainrpc",
pass: "579fZMvSHLbdnbmg253CAm8Tmvs8c7uZz7WEHH6H1kJ4"
});
multichain.getInfo((err, info) => {
if(err){
throw err;
}
console.log(info);
})