Open patr0805 opened 8 years ago
Hi — the IP address/hostname is wrong. It needs periods, e.g. 192.168.1.112.
I’ve had to guess where that last period goes, it might be 192.168.11.12, or 192.168.111.2, but the most likely one is the one I’ve given first.
If you point a web browser at any of those as you are doing, it should work.
Again, your rpcallowip in you .conf should be an IP address with periods.
On 4 Feb 2016, at 15:50, patr0805 notifications@github.com wrote:
So I have tried hosting a chain on both a virtual machine and a dedicated machine "multichaind chain1@[ip-address]:[port]" is able to connect without issues in both cases, but when I use the C# lib it just keeps giving me an "RPC request failed" issue
var client = new MultiChainClient("1921681112", 7405, false, "multichainrpc", "Bi5CkFhoFTk3RG6nnNz3D1ZiHX6t3ZNcY4GQnBPwCe1d", "infoChain");
An interesting thing is that if I visit "http://1921681112:7405" while the daemon is running I always get a "ERR_EMPTY_RESPONSE" and closing the deamon changes this message to "ERR_CONNECTION_REFUSED"
I am connecting from a PC on the same network with the ip address of 1921681104 to an ubuntu machine running with the following multichain-conf
rpcuser=multichainrpc rpcpassword=Bi5CkFhoFTk3RG6nnNz3D1ZiHX6t3ZNcY4GQnBPwCe1d rpcallowip=1921681104
Any suggestions or is this a bug?
— Reply to this email directly or view it on GitHub https://github.com/PbjCloud/MultiChainLib/issues/4.
A period is the "." character and that is already placed between the numbers I wrote of the IP. I don't get your answer, I have ran ipconfig on my windows machine and it says 192.168.1.104 and multichaind on the ubuntu machine says the ip/port is 192.168.1.112:7405. I can successfully ping 192.168.1.112 from my windows machine so the ip is connectable and multichaind can successfully connect as a new node to 192.168.1.112 and issue commands, but your library only gives me RPC request failed messages. If you are refering to "multichaind chain1@[ip-address]:[port]" then the exact thing I wrote was: "multichaind infoChain@192.168.1.112:7405" and that works when run from a virtual machine on my windows computer. The actual chain is hosted on a dedicated ubuntu machine on the same network.
What’s the whole error message?
On 4 Feb 2016, at 16:00, patr0805 notifications@github.com wrote:
A period is the "." character and that is already placed between the numbers I wrote of the IP. I don't get your answer, I have ran ipconfig on my windows machine and it says 192.168.1.104 and multichaind on the ubuntu machine says the ip/port is 192.168.1.112:7405. I can successfully ping 192.168.1.112 from my windows machine so the ip is connectable and multichaind can successfully connect as a new node to 192.168.1.112 and issue commands, but your library only gives me RPC request failed messages.
— Reply to this email directly or view it on GitHub https://github.com/PbjCloud/MultiChainLib/issues/4#issuecomment-179916320.
Okay I tried setting everything up again from the start at least 3 times and now it suddently works. I think the problem is that I had the port of rpc confused with the port that multichain peers use and had set them to the same value. I falsely assumed that the peer clients were communicating with this rpc protocol. I did try with 8080 too at some point and that didn't work ( same with 80), but it now works at port 7405 as the rpc port (have to be set manually as a config -rpcport) and another port for multichain peers.
Hi, I got the same error, but i had put the right rpc port itself and im trying to connect to a node on my machine itself.
var client = new MultiChainClient("192.168.99.1", 6484, false, "multichainrpc", "CVtAfYv4wfbqjxCtFFFUuhsNyddgNF5w2oiX7pKdP9oj", "JacChain");
Conf file has below details rpcuser=multichainrpc rpcpassword=CVtAfYv4wfbqjxCtFFFUuhsNyddgNF5w2oiX7pKdP9oj
is there something im missing here? I'm getting the following errors.
getinfo
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Failed to issue JSON-RPC request.
JSON: {"method":"getinfo","params":[],"chain_name":"JacChain","chain_key":null," int":0} ---> System.Net.WebException: Unable to connect to the remote server ---
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.99.1:6484
Please help.
Thanks, Jacob
That error means the port isn't open or accessible
On 19 Jul 2017 11:44 am, "jacobvincent" notifications@github.com wrote:
Hi, I got the same error, but i had put the right rpc port itself and im trying to connect to a node on my machine itself.
var client = new MultiChainClient("192.168.99.1", 6484, false, "multichainrpc", "CVtAfYv4wfbqjxCtFFFUuhsNyddgNF5w2oiX7pKdP9oj", "JacChain");
Conf file has below details rpcuser=multichainrpc rpcpassword=CVtAfYv4wfbqjxCtFFFUuhsNyddgNF5w2oiX7pKdP9oj
is there something im missing here? I'm getting the following errors.
getinfo
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Failed to issue JSON-RPC request.
JSON: {"method":"getinfo","params":[],"chain_name":"JacChain"," chain_key":null," int":0} ---> System.Net.WebException: Unable to connect to the remote server ---
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.99.1:6484
Please help.
Thanks, Jacob
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PbjCloud/MultiChainLib/issues/4#issuecomment-316346279, or mute the thread https://github.com/notifications/unsubscribe-auth/AAR2Fp43SU97QXnaRyCWIvXtoW6ijkC-ks5sPd4fgaJpZM4HTfIf .
Hi Mathew,
Is there some other configuration which needs to be done other than what is given below?
var client = new MultiChainClient("16.175.65.71", 6485, false, "multichainrpc", "HbYvB9Ht9Gyb8iAPPLHfbUzJYyQKVTZWih1UXBTpZ8yS", "JacChain1");
I had not looked into this for a while, came back now to try it again and i'm still not able to connect. It gives me error at the response.
var response = await request.GetResponseAsync();
ERROR : {"The underlying connection was closed: The connection was closed unexpectedly."}
The below given is my started multichain node.
MultiChain Core Daemon build 1.0 beta 2 protocol 10008
Other nodes can connect to this node using: multichaind JacChain1@16.175.65.71:6485
This host has multiple IP addresses, so from some networks:
multichaind JacChain1@192.168.99.1:6485 multichaind JacChain1@192.168.48.1:6485 multichaind JacChain1@169.254.127.226:6485 multichaind JacChain1@192.168.110.1:6485 multichaind JacChain1@192.168.56.1:6485
Node started
P.S : I'm able to do telnet to 16.175.65.71 6485
Thanks, Jacob
So I have tried hosting a chain on both a virtual machine and a dedicated machine. "multichaind chain1@[ip-address]:[port]" is able to connect without issues in both cases, but when I use the C# lib it just keeps giving me an "RPC request failed" issue.
var client = new MultiChainClient("192.168.1.112", 7405, false, "multichainrpc", "Bi5CkFhoFTk3RG6nnNz3D1ZiHX6t3ZNcY4GQnBPwCe1d", "infoChain");
An interesting thing is that if I visit "http://192.168.1.112:7405" while the daemon is running I always get a "ERR_EMPTY_RESPONSE" and closing the deamon changes this message to "ERR_CONNECTION_REFUSED".
I am connecting from a PC on the same network with the ip address of 192.168.1.104 to an ubuntu machine running with the following multichain-conf.
rpcuser=multichainrpc rpcpassword=Bi5CkFhoFTk3RG6nnNz3D1ZiHX6t3ZNcY4GQnBPwCe1d rpcallowip=192.168.1.104
Any suggestions or is this a bug?