# Running the node

### Prerequisites

All prerequisites are exactly the same as on the Testnet with regard to the ports and system configuration. We will present a short reminder on how to get the Aleph Node Runner and start it to connect to Mainnet.

Clone the Aleph Node Runner repo:

```bash
git clone https://github.com/Cardinal-Cryptography/aleph-node-runner
cd aleph-node-runner
```

### Setup and running

Once inside the `aleph-node-runner` folder, run:

```bash
./run_node.sh -n <your_nodes_name>  --ip <your public ip> --mainnet
```

If you are using a domain name instead of an IP (e.g. in a DynDNS configuration), you will need to pass the `--dns` argument:

```
./run_node.sh -n <your_nodes_name> --dns <your domain name> --mainnet
```

Management of the node and any [custom options](https://docs.alephzero.org/aleph-zero/use/validate/running-an-aleph-node-on-testnet/customizing-your-setup) are the same as on Testnet with the notable difference of the config being located in the `env/validator_mainnet` file.

{% hint style="warning" %}
Please make sure to verify your installation as per the [Testnet instructions](https://docs.alephzero.org/aleph-zero/use/validate/running-an-aleph-node-on-testnet/verifying-your-setup).
{% endhint %}
