# Running cardano-node on Windows 10

**URL:** <https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978>\
**Category:** Misc Dev Talk\
**Created:** [23 November 2021 02:49 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978 "2021-11-23T02:49:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stakeside](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/stakeside/32/57684_2.png) [@stakeside](https://forum.cardano.org/u/stakeside)\
**Post date:** [23 November 2021 02:49 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978/1 "2021-11-23T02:49:34Z")

</div>

I’m running a perfect working cardano-node with Ubuntu on VirtualBox which eats a lot of memory and CPU so i wanted to try a native cardano-node on Windows 10.

I’m able to run it via command line using `cardano-node run` but I’m not sure how to do stuff like `cardano-cli query utxo --mainnet --address xxxxx` which i can easily do with my VM. I get this error when i run it:

`Command failed: query utxo Error: Error while looking up environment variable: CARDANO_NODE_SOCKET_PATH Error: "CARDANO_NODE_SOCKET_PATH"`

So how do you set the `--socket-path` in Windows? Is there any Windows tutorial online?

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [23 November 2021 07:11 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978/2 "2021-11-23T07:11:27Z")

</div>

you will need to export the socket path, but I don’t know how it’s working on windows…

export CARDANO\_NODE\_SOCKET\_PATH=/home/user/cardano/db/socket (replace /home/user/cardano/db/socket with your path for socket)

after that login again or type `source ~/.bashrc` to reload the changes

---

<div class="post-metadata">

**Author:** ![stakeside](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/stakeside/32/57684_2.png) [@stakeside](https://forum.cardano.org/u/stakeside)\
**Post date:** [23 November 2021 07:32 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978/3 "2021-11-23T07:32:14Z")

</div>

I know how to do it in Linux but I don’t know how to do it in Windows.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [23 November 2021 07:34 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978/4 "2021-11-23T07:34:37Z")

</div>

try this, I don’t know if it will work but you can try it

[https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/)

---

<div class="post-metadata">

**Author:** ![stakeside](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/stakeside/32/57684_2.png) [@stakeside](https://forum.cardano.org/u/stakeside)\
**Post date:** [23 November 2021 09:02 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978/5 "2021-11-23T09:02:00Z")

</div>

Yeah already tried but it’s not working. It might be with the way the node.socket is implemented on Windows. I just don’t know how to do that. I cannot find any info about it.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [23 November 2021 10:30 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978/6 "2021-11-23T10:30:07Z")

</div>

> [@stakeside](#):
>
> ’t know how to do that. I cannot find any info about it.

buth, the node is running? is synced? the socket is created?

---

<div class="post-metadata">

**Author:** ![MariusFabry](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/mariusfabry/32/52265_2.png) [@MariusFabry](https://forum.cardano.org/u/MariusFabry)\
**Post date:** [17 March 2022 07:51 UTC](https://forum.cardano.org/t/running-cardano-node-on-windows-10/85978/7 "2022-03-17T07:51:29Z")

</div>

It seems that the node uses the WinAPI function CreateNamedPipe, which requires the name to have the format \\.\pipe\PIPENAME

See: [CreateNamedPipeA function (winbase.h) - Win32 apps | Microsoft Learn](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea)

I can start a node with this command in Git Bash on Windows 10:

> ./cardano-node.exe run --topology testnet-config/testnet-topology.json --config testnet-config/testnet-config.json --database-path db --socket-path ‘\\.\pipe\node.socket’ --port 3001

I can then also run cardano-cli in Git Bash:

> $ CARDANO\_NODE\_SOCKET\_PATH=‘\\.\pipe\node.socket’ ./cardano-cli get-tip --testnet-magic 1097911063  
> {  
> “hash”: “3f9b91d4c29249e84d46064d50f0638b6927ebb192b8f57d53beee7d0e640f33”,  
> “slot”: 53137099,  
> “block”: 3401750  
> }

I hope this helps,  
Marius
