hi there,
I’m using a following script to start my relay node which is on separate virtual instance. The problem which I have is an IP address. If I leave IP as it is 0.0.0.0 or 127.0.0.1 I can run the relay but my producer node can’t connect to it. I tried to use the public IP but then I’m reciving error:
Blockquote
cardano-node: Network.Socket.bind: unsupported operation (Cannot assign requested address)
cat > $NODE_HOME/startBlockProducingNode.sh << EOF
#!/bin/bash
DIRECTORY=$NODE_HOME
PORT=6000
HOSTADDR=0.0.0.0
TOPOLOGY=${DIRECTORY}/${NODE_CONFIG}-topology.json
DB_PATH=${DIRECTORY}/db
SOCKET_PATH=${DIRECTORY}/db/socket
CONFIG=${DIRECTORY}/${NODE_CONFIG}-config.json
/usr/local/bin/cardano-node run --topology ${TOPOLOGY} --database-path ${DB_PATH}
–socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG}
EOF
ANy help welcome. Thanks.
Start ur node with 0.0.0.0
Then check if ur relay has the port 6000 opened to accept income connections! If not open the port in fw
To test if the port is open try from Producer:
telnet Relay_IP 6000
U should see connected
If yes, check the Producer topology file
Cheers,
1 Like
still desn’t work,
I checked connection with telnet and I have connection from relay to producer, but there is no connection from block producer to relay
I did use following on both instances.
ufw allow proto tcp from any to any port 6000
Ok
On producer, show me the topology file
PS: on producer u should accept connections only from relay on port 6000
sudo ufw allow proto tcp from Relay_IP to any port 6000
1 Like
{
“Producers”: [
{
“addr”: “<my_relay_ip>”,
“port”: 6000,
“valency”: 1
},
{
“addr”: “<my_relay_ip_2>”,
“port”: 6000,
“valency”: 1
}
]
}
ok, I found the problem. I forgot about google cloud firewall. Thanks for help.
1 Like