# How to Run Starknet Node

By [singkhon.eth](https://paragraph.com/@singkhon.eth) · 2023-11-26

---

![](https://storage.googleapis.com/papyrus_images/466935102c7a126be3a4a5bc01ae421b.png)

We will run Starknet node by using virtual machine provided by Google Compute Engine.

1.  Google Compute Engine
    

*   Create a new Google email to get 300$ credit.
    
*   Need a credit card
    
*   Follow on-screen instructions. In this case, we use the Google Cloud engine for individuals, not businesses.
    

![](https://storage.googleapis.com/papyrus_images/7d7c2f7cae1a0400248283ad531888f6.png)

2\. Setup VM machine

*   From Google cloud compute engine dashboard, Click “VM instance” Click “Create Instance”
    

![](https://storage.googleapis.com/papyrus_images/1f7c4517097661855292b2f273e9033d.png)

*   Setup specification of VM as follows:
    

Provide Name of Instance

For Machine type — CPU: 2 cores, Memory: 4GB (minimum)  
For Boot disk — OS: Ubuntu 22.04 LTS and 600GB (minimum)

3\. Setup Firewall

*   Go to VPC Network — → Select Firewall
    

![](https://storage.googleapis.com/papyrus_images/e011664de64fe38462c7378380d0d4f3.png)

*   Click “Create firewall rules”
    

![](https://storage.googleapis.com/papyrus_images/307c3a78d2f4972f9d893a4c6ef654b7.png)

*   Fill Name
    
*   Change Targets from “Specified target tags” to “All Instances in the net work”
    
*   Fill Source IP4 ranges — 0.0.0.0/0
    
*   Fill TCP Port — 26656,26657,26660,9090
    
*   Fill UDP Port — 26656,26657,26660,9090
    
*   Click “Create”
    

![](https://storage.googleapis.com/papyrus_images/c0938ad9ddca25056848df45fd48d0ed.png)

4\. Run VM Instance

*   Click “SSH” from the VM instances page
    

![](https://storage.googleapis.com/papyrus_images/4b29d0fa55025bc14d32d078354f60f9.png)

*   Type “ sudo su” to go to root user
    
*   Type `ALCHEMY=YOUR_ALCHEMY_HTTP_ADDRESS   echo 'export ALCHEMY='$ALCHEMY >> $HOME/.bash_profile`
    

don’t forget to replace “`YOUR_ALCHEMY_HTTP_ADDRESS"`

with your alchemy address

*   Type `echo 'export ALCHEMY='$ALCHEMY >> $HOME/.bash_profile`
    
*   Install Starknet node by using command: `wget -O starknet.sh https://api.nodes.guru/starknet.sh && chmod +x starknet.sh && ./starknet.sh`
    
*   Wait until getting massage “ Your Starknet Node Install!”
    

References:  
[https://nodes.guru/starknet/setup-guide/en](https://nodes.guru/starknet/setup-guide/en)  
[https://twitter.com/FawnFawncool/status/1726182197646991502](https://twitter.com/FawnFawncool/status/1726182197646991502)  
[https://twitter.com/NuNoyDeFi/status/1725186936049119293](https://twitter.com/NuNoyDeFi/status/1725186936049119293)

---

*Originally published on [singkhon.eth](https://paragraph.com/@singkhon.eth/how-to-run-starknet-node)*
