Ways to communicate between two programs in windows c#

Darryl Hoar 141 Reputation points
2021-09-29T20:29:46.257+00:00

Greetings,
I have created a winform application in c#. I have also created a custom window service in c#.
I communicate between them using Sockets and it works fine.

Unfortunately when they are installed in a tightly secured network, the port that is opened is a problem. Getting the port "opened" in the firewall is difficult and time consuming.

Is there a method that is equally as good as sockets but won't cause the security issues I'm observing? Just checking as this has become a bit painful.

thanks,
D

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,249 questions
{count} votes

3 answers

Sort by: Most helpful
  1. RLWA32 40,286 Reputation points
    2021-09-29T20:46:17.063+00:00

    Have you considered using named pipes?


  2. Darryl Hoar 116 Reputation points
    2021-10-04T19:28:10.617+00:00

    Do named pipes required modifications to the firewall rule set to allow them to work?
    The entire reason to move from sockets to named pipes would be to avoid this.

    Thanks!


  3. RLWA32 40,286 Reputation points
    2021-10-04T19:58:41.707+00:00

    See the following for a discussion of the protocols used for named pipes. 4de75e21-36fd-440a-859b-75accc74487c

    0 comments No comments