Unable to connect second node to seed node – “Couldn’t connect to the seed node on port 4419”

+1 vote

Hi,

I’m currently setting up a MultiChain network (version 2.3.3 – protocol 20013) and facing an issue while connecting a secondary node to the seed node.

When I run the following command on the secondary node:

multichaind [chain-name]@[seed-node-ip]:[port-number] -datadir="E:\Multichain\nodes\SecondNode" -daemon

I receive this error:

 

Retrieving blockchain parameters from the seed node [seed-node-ip]:[port-number] ... Error: Couldn't connect to the seed node [seed-node-ip] on port [port-number] - please check multichaind is running at that address and that your firewall settings allow incoming connections.

Here are my setup details for context:

  • MultiChain version: 2.3.3 (Community Edition, protocol 20013)

  • Seed node IP: [seed-node-ip]

  • Port configuration: default-network-port = [port-number], default-rpc-port = [rpc-port]

  • OS: Windows Server on both nodes

  • Telnet test: Successful on port [port-number]

  • multichain.conf on seed node:

     

    rpcbind=0.0.0.0 rpcallowip=0.0.0.0/0

  • Firewall: Port [port-number] opened for inbound/outbound TCP

Despite these settings, the secondary node still cannot connect.

Could you please help me identify what might be causing this connection failure?
Do I need to modify any additional parameters (such as bind, externalip, or interface configurations) for Windows environments?

Thank you in advance for your assistance.

asked 14 hours ago by faiz

1 Answer

0 votes

The most common issue is getting the RPC port and the network port mixed up.

When you started the first node, it should show you the multichaind command to run on a second node in order to connect to it. This command includes the network port, rather than the RPC port.

Could you please check this is the command you are using?

If so, please output the response when you telnet to that port (from the second server, presumably).

answered 4 hours ago by MultiChain
I've used both the ports, still the same issue.
OK. Can you show the output of telnet when you connect from the first server to the network port on the second server?
From the secondary node:

C:\Windows\system32>netstat -ano | find "<network-port>"

C:\Windows\system32>powershell -Command "Start-Job { while ($true) { $client = (New-Object System.Net.Sockets.TcpListener(<network-port>)); $client.Start(); $client.AcceptTcpClient(); $client.Stop(); } }"

Id  Name  PSJobTypeName  State    HasMoreData  Location
--  ----  --------------  -----   ------------  --------
1   Job1  BackgroundJob   Running True         localhost

C:\Windows\system32>netsh advfirewall firewall add rule name="Multichain-NetworkPort" dir=in action=allow protocol=TCP localport=<network-port>
Ok.

C:\Windows\system32>netsh advfirewall firewall add rule name="Multichain-NetworkPort-out" dir=out action=allow protocol=TCP localport=<network-port>
Ok.

From the primary node:

E:\Multichain\multichain-windows>telnet <secondary-node> <network-port>
Connecting to <secondary-node>...Could not open connection to the host: Connect failed
So telnet was not successful?
...