AnsweredAssumed Answered

Cannot connect to PI AF remotely but locally

Question asked by Weikang on Jun 21, 2018
Latest reply on Jun 22, 2018 by gregor

Hi,

I am trying to connect to the PI system explorer remotely but it keeps rejecting my credential and saying "Connection attempt failed". However, when I RDP onto the actual machine that hosts the PI AF & PI DA, I am able to use the same credential to login PI system explorer, and PI DA is connected as well.

Then when I try to connect it using the code below to it remotely

PIServer myPIServer = myPIServer = PIServer.FindPIServer("xxx");

            try

            {

                myPIServer.Connect();

            } catch (Exception e)

            {

            }

it seems the server is found, but the PI DA rejects my connection

the logs were

6/21/2018 4:46:08.13219 PM, , Information, Disconnected ID: 143 ; Process name: PIConnectionTester.vshost.exe(3236):remote(3236) ; User:  ; OS User:  ; Hostname: ; IP: 160.36.57.180 ; AppID:  ; AppName: , pinetmgr, , Connection Information, , , , , , , , ,

6/21/2018 4:46:08.13216 PM, , Debug, ID: 143; Duration: 0. min.; kbytes sent: 0.140625; kbytes recv: 0.4599609; app: ; user: ; osuser: ; trust: ; ip address: 160.36.57.180; ip host: , pinetmgr, , Connection Statistics, , , , , , , , ,

6/21/2018 4:46:08.13211 PM, , Information, Deleting connection:  PIConnectionTester.vshost.exe(3236):remote(3236), Asynch read failed. [2] The system cannot find the file specified., ID: 143  160.36.57.180:65229, pinetmgr, , , , , , , , , , ,

6/21/2018 4:46:07.17052 PM, , Information, Unsuccessful login  ID: 143. Address: 160.36.57.180. Name: PIConnectionTester.vshost.exe(3236):remote. Credentials used: UTK\wwang72. Method: Trust. Error: [-10413] No trust relation for this request, pinetmgr, , , , , , , , , , ,

6/21/2018 4:46:07.17036 PM, , Debug, Trust request from: <domain>\<id>|<machine>|<ip>|PIConnectionTester.vshost.exe failed: [-10413] No trust relation for this request (0), pibasess, , , , , , , , , , ,

6/21/2018 4:46:07.14833 PM, , Information, Connection accepted:     Process name:  PIConnectionTester.vshost.exe(3236):remote(3236) ID: 143, pinetmgr, , , , , , , , , , ,

6/21/2018 4:46:07.14746 PM, , Debug, PInet accepted TCP/IP connection, cnxn ID 143 Hostname: , 160.36.57.180: 65229, pinetmgr, , , , , , , , , , ,

 

Do you know what would be the problem? How can I resolve it?

Outcomes