TCP
Remote PC with TCP Client
The Device API is Equipped with Remote communication feature Via TCP. Install TCP Client on the Remote PC and configure using config file
TCP Client Download & Installation
Server PC with DeviceAPI
The Device API establishes TCP communication only if the method "FromCommunicationType" is used
IDriver? driver = DeviceAPI.Driver.FromCommunicationType(DeviceCom.CommunicationType.TCPIP); // IP+Port from the Config.ini will be used for the connection (Config.ini needs to be stored inside the Application folder (all users) or under "C:\Users\<user>\AppData\Roaming\StepOver\TCPIpExtension" (individual user settings) IDriver? driver = DeviceAPI.Driver.FromCommunicationType(DeviceCom.CommunicationType.TCPIP, "192.168.4.40", "8888"); // Instead of using the Config.ini, the IP+Port can also be set by the application directly
Configuration
If you chose to set the client address with the config.ini you will need to create this file on the server side. The contend of the file looks like this:
|
You need to replace the IP address (0.0.0.0) with the one of the client.
There are 2 ways to use the config.ini
, in case you place it into the same folder where the executable file of the application is, all users which are using the application will use the same TCP Settings. In case of an Multi-User System you should use the second option and place the config.ini into the user folder (C:\Users\<USER>\AppData\Roaming\StepOver\TCPIpExtension), on that way every user can have different TCP-Settings for the same application.
You need to create this Config.ini by your own (create a textfile with the values above and save it under the name config.ini) or you can use the RDP-IPConfig tool. The Setup is not creating the config.ini.
RDP-IPConfig Tool
Because the Client-IP can be dynamic we created a small tool which can be used to set / update the config.ini
. The tool will check the network status for open RDP Sessions to identify the Client-IP and will write it into the user folder. This means the tool works only when the TCP Session is active, for example you can start it automatically with the login (see details here) of the user (or run it manually). This tool is optional and not required for the TCP Solution.
https://www.stepoverinfo.net/download.php?file=RDP-IPConfig-Set_V3.zip