"don't get connection" is pretty vague. Could you please give more detail as to what this means? Connection to the CP-X8 via ethernet or how?
By the way, I moved your thread to the Python forum, since this is the "application" layer/data transport in your ConnectPort X8, and likely the direction this will go.