Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
Sporadically receiving connection error when doing JSON RPC requests
Multichain Explorer: RPC failed: [Errno socket error] [Errno 111] Connection refused
RPC failed: [Errno socket error] [Errno 111] Connection refused catch_up_rpc: abort
How to Allow RPC connection to live hosting server
RPC connection failure
4,157
questions
4,370
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
RPC error connection
0
votes
Hello,
I getting the following error trying to connect RPC-API "No connection could be made because the target machine actively refused it [ip]:6822", i missing something?
asked
Oct 19, 2015
by
alonsadeh
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
Please see this answer:
http://www.multichain.com/qa/43/cannot-connect-to-json-rpc-api?show=44#a44
answered
Oct 19, 2015
by
MultiChain
Hello,
this is my multichain.conf file
rpcuser=user
rpcpassword=password
anyone-can-connect=true
rpcallowip=ip
anyone-can-send=true
rpcport=8332
server=1
rpctimeout=30
testnet=0
addnode=10.0.90.147
addnode=10.0.90.130
maxconnections=50
rpcssl=0
allowreceivebyip=1
rpcallowip=10.0.0.24
am i missing something? still getting the same problem, can u help me please.
You have two values of rpcallowip in there, and the first is probably overriding the second. Also anyone-can-connect is a blockchain parameter, not a runtime parameter of an individual node, so it won't do anything in multichain.conf.
what is the full api url?
currently i getting 403 error.
It's just the node's IP address, with the appropriate port (defined by rpcport)
ok, i still get 403
i saw the rpc port runs nuder tcp6, might be the reason? if so, can i change it to tcp4?
i trying to access rpc from .net tcp4.
Did you try using multichain-cli first, and see if that connects OK?
yes i works on the server(ssh), i have telnet connection from my computer, i have tried it(multichain-cli chain1 getinfo) from .net call, and i getting 403 error.
OK, well I recommend trying to find a .net library that works with Bitcoin Core, and then using it with MultiChain. This will ensure all the authentication stuff is done correctly. For example:
https://github.com/GeorgeKimionis/BitcoinLib
ok, i tried to run it with BitcoinLib....unfortunately i getting the same error.
any suggestions?
Try with just these lines in multichain.conf: rpcuser, rpcpassword, rpcallowip
After a series of attempts, the following worked for me. This could be the case of authentication - duplication of multichain.conf in ~/.multichain and its sub-folders results in multiple sets of rpcuser/password combinations. By default, there is a multichain.conf created in ~/.multichain/chain1/, which is the file when overridden with desired username pasword combinations allows connection through
Please
log in
or
register
to add a comment.
...