Answer the question
In order to leave comments, you need to log in
How can I remotely (on another computer in the local network) perform a series of simple actions from the program (open a COM port, delete a file)?
There is a program written in C# and working with the device via the COM port. The program is installed and works fine if both it and the COM port are installed on machine A. However, there is a need to run the program from another computer (machine B) with access to the instrument (the instrument is directly accessible only from machine A). Both computers are connected via a network.
Is it possible to open a port on machine A remotely from machine B and connect the program to the device? Please do not offer solutions like VSPE. It is required either by regular Windows means, or by writing additional. module in the program to do this (but the question is, using what). DCOM, RPC, NET Remoting?
Answer the question
In order to leave comments, you need to log in
www.redline-software.com/eng/support/articles/networking/windows2008/how-windows2008-winrm-winrs.php
RDP can do COM port redirection, you can call it from the program. Or look at RDP clients with source codes to include the module in your program. For example freerdp: www.freerdp.com/.
WinRM is powerful, but requires it to be enabled on both sides, and it's targeted for use in a domain environment. A more interesting option is PowerShell, although there is also a nuance here - the execution of unsigned scripts is disabled by default in PS.
There is a solution that is alternative to all
the
software options above :) Hardware
:
www.moxa.ru/group/listAll/14890/?gclid=CKu44_7qp6UCFQGDDgodUjYHGA will be available to any computer in the grid, and the COM port will be virtual with the name of the local one (COM1 or COM15, as fantasy allows).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question