# Connecting to different openHistorian in another system through Python openHistorian API on local system

**URL:** <http://discussions.gridprotectionalliance.org/t/connecting-to-different-openhistorian-in-another-system-through-python-openhistorian-api-on-local-system/921>\
**Category:** openHistorian\
**Created:** [July 13, 2021, 7:55am UTC](http://discussions.gridprotectionalliance.org/t/connecting-to-different-openhistorian-in-another-system-through-python-openhistorian-api-on-local-system/921 "2021-07-13T07:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Datta](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/d/50afbb/32.png) [@Datta](http://discussions.gridprotectionalliance.org/u/Datta)\
**Post date:** [July 13, 2021, 7:55am UTC](http://discussions.gridprotectionalliance.org/t/connecting-to-different-openhistorian-in-another-system-through-python-openhistorian-api-on-local-system/921/1 "2021-07-13T07:55:41Z")

</div>

Hi Ritchie,  
I am trying to connect to a different openHistorian in a separate computer using the IP address in the openHistorian python API but I am unable to do so:

Code:  
def readTest(startTime,endTime,interval, tolerance):

```
# Create historian connection (the root API object)

historian = historianConnection("XX.XX.XXX.XXX")

instance: Optional[historianInstance] = None

```

Error:  
**Failed to connect: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond**

Do we need to open any specific ports or create some rules?

Thanks,  
Datta

---

<div class="post-metadata">

**Author:** ![ritchiecarroll](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/ritchiecarroll/32/2_2.png) [@ritchiecarroll](http://discussions.gridprotectionalliance.org/u/ritchiecarroll)\
**Post date:** [July 13, 2021, 6:24pm UTC](http://discussions.gridprotectionalliance.org/t/connecting-to-different-openhistorian-in-another-system-through-python-openhistorian-api-on-local-system/921/2 "2021-07-13T18:24:48Z")

</div>

Likely a local firewall issue. Add openHistorian.exe as a firewall exception.

Thanks,  
Ritchie
