<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged connection-issues</title>
<link>https://www.multichain.com/qa/tag/connection-issues</link>
<description>Powered by Question2Answer</description>
<item>
<title>Unable to open a connection using Lucid Ocean C# Library</title>
<link>https://www.multichain.com/qa/35029/unable-to-open-a-connection-using-lucid-ocean-c%23-library</link>
<description>&lt;p&gt;Good Day,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am trying to work on a Hello world web application using &lt;span style=&quot;text-decoration: underline;&quot;&gt;LucidOcean.Multichain assembly using C# in Microsoft Visual Studio 2017&lt;/span&gt;. I am just trying to make a connection from the server to the server.&lt;/p&gt;&lt;p&gt;Following is my sample code taken from Multichain Developers website&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;MultiChainConnection connection = new MultiChainConnection()&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hostname = &quot;xxx.xxx.xx.79&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Port = 7349,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Username = &quot;multichainrpc&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Password = &quot;F4oMLnguUvNYyT6ZUjKQY7r7auGCYzgB8NncZDdZS8QE&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChainName = &quot;ChainName&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BurnAddress = &quot;1XXXXXXWzyXXXXXXg2XXXXXXcTXXXXXXXqFAPD&quot;,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RootNodeAddress = &quot;1WNtXcjb8L9c96JnQbwsQKFPBxgnm1AJK5zd5F&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MultiChainClient _Client = new MultiChainClient(connection);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JsonRpcResponse&amp;lt;string&amp;gt; response= _Client.Wallet.GetNewAddress();&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I run the daemon command, resulting information gives me two ports to work with,&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;First port is 7349 given in the following lines&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Other nodes can connect to this node using:&lt;/li&gt;&lt;li&gt;multichaind &lt;a rel=&quot;nofollow&quot; href=&quot;mailto:ChainName@169.254.88.79:7349&quot;&gt;ChainName@169.254.88.79:7349&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I use 7349 as a port, code throws following exception&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#FFFF00&quot;&gt;The underlying connection was closed: The connection was closed unexpectedly&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Second port is 7348 taken from following lines&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Listening for API requests on port 7348 (local only - see rpcallowip setting)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;If use 7348 as a port, code throws following exception&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#FFFF00&quot;&gt;Unable to connect to the remote server, No connection could be made because the target machine actively refused it 169.254.88.79:7348&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please advise what port I should use and what could be the problem prohibiting the connection?&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/35029/unable-to-open-a-connection-using-lucid-ocean-c%23-library</guid>
<pubDate>Mon, 12 Jul 2021 11:18:42 +0000</pubDate>
</item>
<item>
<title>Can't type the grant command on the first server.</title>
<link>https://www.multichain.com/qa/31115/cant-type-the-grant-command-on-the-first-server</link>
<description>&lt;p&gt;I cant type the &quot;&lt;span style=&quot;color:rgb(199, 37, 78); font-family:menlo,monaco,consolas,courier new,monospace; font-size:12.6px&quot;&gt;multichain-cli chain1 grant&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(199, 37, 78); font-family:menlo,monaco,consolas,courier new,monospace; font-size:12.6px&quot;&gt;connect&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt;&lt;span style=&quot;font-family:menlo,monaco,consolas,courier new,monospace; font-size:12.6px&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;command on the first server. it says listening for API&amp;nbsp;request on port ____. I need help&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/31115/cant-type-the-grant-command-on-the-first-server</guid>
<pubDate>Thu, 22 Apr 2021 03:09:21 +0000</pubDate>
</item>
<item>
<title>Connect to the multichain</title>
<link>https://www.multichain.com/qa/27292/connect-to-the-multichain</link>
<description>Hi I have a front end application to manage assets. And have a separate digital ocean machine to handle the multichain. Have tried to connect the front end application from local and which points to digital ocean machine. &lt;br /&gt;
&lt;br /&gt;
Have added the param rpcallowip=192.168.0.7 &amp;nbsp;in the multichain.conf file and restarted the blockchain. But not able to connect from the local machine through the front-end application. but when I added the param as &lt;br /&gt;
&lt;br /&gt;
rpcallowip=0.0.0.0/0 &amp;nbsp;am able to connect. &amp;nbsp;can you please help me to fix this?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/27292/connect-to-the-multichain</guid>
<pubDate>Mon, 25 Jan 2021 18:11:21 +0000</pubDate>
</item>
<item>
<title>addnode strategy</title>
<link>https://www.multichain.com/qa/24887/addnode-strategy</link>
<description>&lt;p&gt;Dear MC team,&lt;/p&gt;&lt;p&gt;I have a network with about ten miners (in round-robin style) and some full back nodes.&lt;br&gt;I have to face the following matters:&lt;br&gt;- periodically some miner are switched off for maintenance&lt;br&gt;- the miners must be addressed by host name because their address could change&lt;/p&gt;&lt;p&gt;I cannot use a &lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;connect &lt;/span&gt;command because I'm not sure which of the miner is up and running at one moment.&amp;nbsp;&lt;br&gt;Besides even if the connect command is succesful, if the server is switched off then the connected node will be unplugged from the network.&lt;/p&gt;&lt;p&gt;My idea is to add a crontab command (executed every day or on a periodical basis) as the following:&lt;br&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;multichain-cli &amp;lt;chain_name&amp;gt; addnode $(dig +short miner_1_hostname):&amp;lt;port&amp;gt; add&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;multichain-cli &amp;lt;chain_name&amp;gt; addnode $(dig +short miner_2_hostname):&amp;lt;port&amp;gt; add&lt;/span&gt;&lt;br&gt;... and so on&lt;/p&gt;&lt;p&gt;I used '&lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;dig +short hostname&lt;/span&gt;' because in MC 2.0.1 using &lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;addnode hostname&lt;/span&gt; instead of ip address seems to cause a crash.&lt;/p&gt;&lt;p&gt;Could you please comment my solution?&lt;br&gt;Thanks&lt;br&gt;&amp;nbsp; Fabio&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/24887/addnode-strategy</guid>
<pubDate>Wed, 25 Nov 2020 21:44:16 +0000</pubDate>
</item>
<item>
<title>VM won't connect to multichain on another VM</title>
<link>https://www.multichain.com/qa/21901/vm-wont-connect-to-multichain-on-another-vm</link>
<description>&lt;p&gt;&lt;span style=&quot;font-size:12px&quot;&gt;&lt;span style=&quot;font-family:tahoma,geneva,sans-serif&quot;&gt;I followed the get started tutoial and set up my own blockchain on an Azure linux VM, I set up another VM and when I ran the multichaind mychain@IP:Port command it gives this&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Error : can not connect to&amp;nbsp;&amp;nbsp;mychain@IP:Port make sure&amp;nbsp; Multichain is unning on port.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-size:12px&quot;&gt;&lt;span style=&quot;font-family:tahoma,geneva,sans-serif&quot;&gt;my first vm's ip adress is :&amp;nbsp;&lt;span style=&quot;color:rgb(0, 0, 0)&quot;&gt;20.188.57.6&lt;/span&gt;, my second's IP is&amp;nbsp;&lt;span style=&quot;color:rgb(0, 0, 0)&quot;&gt;20.188.59.71. But the IP they give me to connect with is different from the public one.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:12px&quot;&gt;&lt;span style=&quot;font-family:tahoma,geneva,sans-serif&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Another question is : do all of my nodes have to be in the same network as my root node or I can connect from other&amp;nbsp;networks?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/21901/vm-wont-connect-to-multichain-on-another-vm</guid>
<pubDate>Thu, 23 Jul 2020 13:56:07 +0000</pubDate>
</item>
<item>
<title>Connection failure between nodes?</title>
<link>https://www.multichain.com/qa/18520/connection-failure-between-nodes</link>
<description>What happens if the connection between a node and the network is broken. &lt;br /&gt;
&lt;br /&gt;
However, the node does not notice the disconnection and continues working for 2 day. After 48 hours the node can reconnect to the network. What happens now with the transactions and different lengths of the blockchain?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/18520/connection-failure-between-nodes</guid>
<pubDate>Wed, 04 Mar 2020 15:36:13 +0000</pubDate>
</item>
<item>
<title>Couldn't initialize permission database for blockchain X (on Mac OSX)</title>
<link>https://www.multichain.com/qa/8991/couldnt-initialize-permission-database-blockchain-mac-osx</link>
<description>Had this problem before on Mac OSX with v1, and still persists with v2...maybe I am missing something...&lt;br /&gt;
&lt;br /&gt;
compiled and installed and connected successfully to a chain, running commands etc..then I stopped the chain and deleted the folder for the chain details. Now when I try to connect to the chain again fresh it gives this&lt;br /&gt;
&lt;br /&gt;
multichaind tagcash@tagcash.com:3000 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
MultiChain 2.0 alpha 2 Daemon (latest protocol 20002)&lt;br /&gt;
ERROR: Couldn't initialize permission database for blockchain tagcash. Probably multichaind for this blockchain is already running. Exiting...&lt;br /&gt;
&lt;br /&gt;
So I check if multichain is running - nothing there:&lt;br /&gt;
&lt;br /&gt;
ps -x |grep multichain&lt;br /&gt;
78928 ttys000 &amp;nbsp;&amp;nbsp;&amp;nbsp;0:00.00 grep multichain&lt;br /&gt;
&lt;br /&gt;
I deleted the .multichain directory in home folder, and then ran the connect command again..it creates a new tagcash folder inside .multichain folder, with these files:&lt;br /&gt;
&lt;br /&gt;
multichain.conf &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
permissions.db &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
permissions.log&lt;br /&gt;
&lt;br /&gt;
The permissions.log shows only this:&lt;br /&gt;
&lt;br /&gt;
2018-03-18 23:17:44.445 &amp;nbsp;&amp;nbsp;&amp;nbsp;Initialize: Cannot initialize semaphore&lt;br /&gt;
&lt;br /&gt;
Kinda stuck now. Any ideas?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/8991/couldnt-initialize-permission-database-blockchain-mac-osx</guid>
<pubDate>Sun, 18 Mar 2018 15:10:32 +0000</pubDate>
</item>
<item>
<title>Connect to bitcoin nodes or network with multichain?</title>
<link>https://www.multichain.com/qa/6577/connect-to-bitcoin-nodes-or-network-with-multichain</link>
<description>How to connect to bitcoin network with multichain?&lt;br /&gt;
I have tried with the following command but I got this error :&lt;br /&gt;
username@remoteweb:~$ multichaind bitcoin@seed.bitcoin.sipa.be -daemon&lt;br /&gt;
&lt;br /&gt;
MultiChain 1.0 Daemon (protocol 10008)&lt;br /&gt;
&lt;br /&gt;
MultiChain server starting&lt;br /&gt;
ERROR: The protocol version (10002) for blockchain bitcoin has been deprecat&lt;br /&gt;
ed and was last supported in MultiChain 1.0 beta 1</description>
<guid isPermaLink="true">https://www.multichain.com/qa/6577/connect-to-bitcoin-nodes-or-network-with-multichain</guid>
<pubDate>Thu, 07 Sep 2017 13:18:59 +0000</pubDate>
</item>
<item>
<title>Issue when creating streams</title>
<link>https://www.multichain.com/qa/4234/issue-when-creating-streams</link>
<description>&lt;p&gt;Hi everybody.&lt;/p&gt;&lt;p&gt;I'm running through the setup and install guides just to get a feel for Multichain, however I'm running into an issue when trying to create a stream.&lt;/p&gt;&lt;p&gt;Note: I've created my chain on 2 x docker ubuntu servers using the instructions here:&lt;/p&gt;&lt;p&gt;&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;https://medium.com/@kiran.anantha/running-multichain-in-docker-containers-8ec30ea866a0#.ooly9why2&quot;&gt;https://medium.com/@kiran.anantha/running-multichain-in-docker-containers-8ec30ea866a0#.ooly9why2&lt;/a&gt;&lt;/p&gt;&lt;p&gt;paired with the getting started instructions here:&lt;/p&gt;&lt;p&gt;&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;http://www.multichain.com/getting-started/&quot;&gt;http://www.multichain.com/getting-started/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Everything is fine up until step 6 of the getting started instructions.&lt;/p&gt;&lt;p&gt;From within the first server I try the command: &quot;multichain-cli create type=stream stream1 false&quot; - but get a return of &quot;error: couldn't connect to server&quot;.&lt;/p&gt;&lt;p&gt;I've looked at other issues relating to &quot;error: couldn't connect to server&quot; but not sure I know enough yet to work out the relevance of those issues to mine.&lt;/p&gt;&lt;p&gt;Is there something I'm doing wrong? Is there something in the guide that needs to be updated?&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4234/issue-when-creating-streams</guid>
<pubDate>Tue, 07 Mar 2017 02:28:02 +0000</pubDate>
</item>
</channel>
</rss>