RobotStudio event

Using RobotWebServices to access a remote Virtual Controller

Maxim Riabichev
Maxim Riabichev Sweden admin
edited March 25 in Developer Tools
Hello,

WARNING: Performing the steps below allows access to the whole filesystem on the PC that hosts the VC and not only the files in the VC.

To access a remote VC with RWS successfully, please perform the following steps:

On the PC which is hosting the remote VC:
1) If it doesn't already exist, create a file called "vcconf.xml" in "C:\Users\{user}\AppData\Roaming\ABB Industrial IT\Robotics IT\RobVC\"
2) Put the following content in it:

<VCConfiguration>
<RemoteVCConfiguration PublicationEnabled="true" />
<hosts>
<host ip="192.168.125.55"/>
</hosts>
</VCConfiguration>

3) Change the ip address (bold above) to the ip of the local PC from which you will be accessing the remote VC resources.

That should do it.

You're basically white-listing the IP of the client.

If you don't, you'll get either:
1. "RAPI Unidentified Error" when trying to access resources on the remote VC.
2. "401 Unauthorized" error if trying to access the VC via RWS.


Maxim Riabichev
PC Software Support Engineer
Post edited by Maxim Riabichev on

Comments

  • Perfect, I was just about to ask why it didn't work remotely! Thanks!
    //Markus Näslund
  • kkNielsen
    kkNielsen Denmark
    Is it possible to white list multiple ip addresses?
  • Maxim Riabichev
    Maxim Riabichev Sweden admin
    edited December 2021
    Yes, it's possible to white list up to 10 IP's:

    <hosts>
    <host ip="10.11.125.1" />
    <host ip="10.11.125.2" />
    <host ip="10.11.125.3" />
    ...
    <host ip="10.11.125.10" />
    </hosts>

    Wildcards are not supported.

    Maxim Riabichev
    PC Software Support Engineer
  • jcalt
    jcalt
    edited March 22
    Hello Maxim 

    I don't have this directory on my PC when RobotStudio is installed ? 
    "C:\Users\{user}\AppData\Roaming\ABB Industrial IT\Robotics IT\RobVC\"
    Neither "C:\Users\{user}\AppData\Roaming\ABB Industrial IT\Robotics IT"

    Post edited by Maxim Riabichev on
  • Maxim Riabichev
    Maxim Riabichev Sweden admin
    Hello JC,

    Yes, if the path doesn't exist, it needs to be created and the missing file put into the necessary folder.

    Maxim Riabichev
    PC Software Support Engineer
  • Hi Maxim,

    I followed your instructions and created vcconf.xml under RobVC. Still, the remote VC cannot be found neither by RobotStudio (2021.4 is used) nor by PCSDK. What could possibly be the problem?

  • Hard to guess without knowing more details regarding your setup. Firewall maybe? Are you on the same subnet as the VC? Could be many reasons.. :)

    Maxim Riabichev
    PC Software Support Engineer