Marlin Mixon · Apr 13, 2021

Trouble With IRIS Native for Python in Health Share

I was interested in accessing IRIS (Healthshare) using Python.  I found instructions how to this here:

The installation went well using pip and when python executes "import irisnative" it works fine.  It just fails with a connection timeout when I try "irisnative.createConnection(...)."  Below is my code:


import irisnative

# Modify connection info based on your environment
ip = ""   # VPN connection to server
port = 58772
namespace = "HSREGISTRY"
username = "my-user"
password = "secret"

# create database connection and IRIS instance
connection = irisnative.createConnection(ip,port,namespace,username,password)
dbnative = irisnative.createIris(connection)

I'm using Python 3.9.1.  Any help would be appreciated!

Marlin Mixon



Product version: IRIS 2020.1
1 0 3 50
Log in or sign up to continue


try to use a username  with privileged %ALL in Health Share    
to distinguish between network problems and access right problems  

Thanks Robert!  I got it working.  I just needed to set my port correctly. It was incorrectly set to 58772 which is what we use for making http connections.  I changed it to 1972 and it worked.