<p>You are launching a Cardano node on your server so you have to bind this node to one of your server's IP addresses.</p>
<p>You can try 127.0.0.1 if you want to stay local or you can go 0.0.0.0 if you want to bind the node to all the IP addresses of your server (assuming that you know what you're doing and that you've already configured the right firewall rules so you don't expose yourself).</p>

CC BY-SA 4.0
2022-01-13T12:16:46.520Z
Wait so what happens if I bind it to an invalid IP address? And maybe a follow-up, can I bind to multiple addresses? Like for example the local VPC one and the public one
milosmns
CC BY-SA 4.0
2021-09-16T13:44:54.737Z
2021-09-16T13:44:54.737Z
baocontact
<p>I have been going through the Cardano developer tutorials and they asked me to run this code (posted below) to run a node but it responded with (Failed to parse IPv4 address: x.x.x.x.).
I figured that it's because I didn't use a valid address (line 5) how do I get one?</p>
<blockquote>
<p>cardano-node run <br />
--topology path/to/mainnet-topology.json <br />
--database-path path/to/db <br />
--socket-path path/to/db/node.socket <br />
--host-addr x.x.x.x <br />
--port 3001 <br />
--config path/to/mainnet-config.json</p>
</blockquote>

CC BY-SA 4.0
2021-09-15T22:29:06.317Z
Try localhost ( 127.0.0.1 ) and it should work
Aron Neewart
<cardano-cli><cardano-node>
What is a host address how do I get one
# What is a host address how do I get one

(Asked by: username_0 on 2021-09-15)

I have been going through the Cardano developer tutorials and they asked me to run this code (posted below) to run a node but it responded with (Failed to parse IPv4 address: x.x.x.x.).
I figured that it's because I didn't use a valid address (line 5) how do I get one?

> cardano-node run   
> --topology path/to/mainnet-topology.json   
> --database-path path/to/db   
> --socket-path path/to/db/node.socket   
> --host-addr x.x.x.x   
> --port 3001   
> --config path/to/mainnet-config.json

**Tags:** cardano-cli, cardano-node
> **Comments:**
> **username_1**: Try localhost ( 127.0.0.1 ) and it should work  

---

## 1 answers

### Answer by username_2 on 2021-09-16. Score: 1

You are launching a Cardano node on your server so you have to bind this node to one of your server's IP addresses.

You can try 127.0.0.1 if you want to stay local or you can go 0.0.0.0 if you want to bind the node to all the IP addresses of your server (assuming that you know what you're doing and that you've already configured the right firewall rules so you don't expose yourself).

> **Comments:**
> **username_3**: Wait so what happens if I bind it to an invalid IP address? And maybe a follow-up, can I bind to multiple addresses? Like for example the local VPC one and the public one  

---

