Getting error :The underlying connection was closed: The connection was closed unexpectedly.

+1 vote
Hello all,

I am getting error like The underlying connection was closed: The connection was closed unexpectedly.

when i want to run my code downloaded from https://github.com/PbjCloud/MultiChainLib ,

In MultiChainClient client what should i put at place of 192.168.40.130 and 50001.

 

Currently I am putting 10.0.1.28 and 2919 because my node address is : multichaind chain9@10.0.1.28:2919

So please any tell me that what should i do to run my code,

Thanks
asked May 6, 2017 by ashokds4u

1 Answer

+1 vote

The 2919 port in the node address is for peer-to-peer connections from other nodes, not connections from your application to the MultiChain API. You need to use the RPC port number with MultiChainLib instead – by default it will be the default-rpc-port value from your chain's params.dat file.

answered May 7, 2017 by MultiChain
Thanks to answer ..
But there is another error when i am changing 2919 from 2918 because default-rpc-port =2918 then

using (var stream = await request.GetRequestStreamAsync())
                    stream.Write(bs, 0, bs.Length);

In this part getting error like :"Unable to connect to the remote server"   .

so please give suggestion .
Thanks
I'm afraid you'd have to ask the author of that library about that specifically, since we can't take responsibility for third party code.
...