# How to connect to algorand private network

**URL:** <https://forum.algorand.co/t/how-to-connect-to-algorand-private-network/3385>\
**Category:** General\
**Created:** [May 27, 2021, 8:49am UTC](https://forum.algorand.co/t/how-to-connect-to-algorand-private-network/3385 "2021-05-27T08:49:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManuelZ](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@ManuelZ](https://forum.algorand.co/u/ManuelZ)\
**Post date:** [May 27, 2021, 8:49am UTC](https://forum.algorand.co/t/how-to-connect-to-algorand-private-network/3385/1 "2021-05-27T08:49:39Z")

</div>

WIth the help of this tutorial [https://developer.algorand.org/tutorials/create-private-network/](https://developer.algorand.org/tutorials/create-private-network/) i was able to create a private algorand network on my machine but also after a lot of research i wasnt able to find out how connect my code to this network. Originally i was using the testnet with an purestake api where my python code looks something like this

```
from algosdk.v2client import algod

purestake_key = 'my purestake key'
endpoint_address = 'https://testnet-algorand.api.purestake.io/ps2'
purestake_header = {'X-Api-key': purestake_key}
acl = algod.AlgodClient(purestake_key, endpoint_address, headers=purestake_header)

```

this works as expected. But what are the parameters i need to connect to my private network? Is it even possible or am i missing something? Form my “ps aux” command i was able to find out that the Private network node is doing something on the local address [http://127.0.0.1:45725](http://127.0.0.1:45725), but the AlgodClient needs an key where can i find this? Leaving the key empty didnt work …

Thanks for your help

---

<div class="post-metadata">

**Author:** ![ManuelZ](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@ManuelZ](https://forum.algorand.co/u/ManuelZ)\
**Post date:** [May 27, 2021, 9:06am UTC](https://forum.algorand.co/t/how-to-connect-to-algorand-private-network/3385/2 "2021-05-27T09:06:46Z")

</div>

Ok, im stupid i found it out: For anyone in the future having the same problem in the directory of your network in the folder Node there are two files [algod.net](http://algod.net) and algod.token (and also an algod.admin.token dont know the difference here) containing the information i needed
