VirtualPc中的进程与主机上的进程通信的最佳方法是什么?

时间:2021-12-27 14:04:23

I have Virtual PC 2007. I am writing a C# program that will run on the Host and Virtual. It needs to communicate both ways.

我有Virtual PC 2007.我正在编写一个将在Host和Virtual上运行的C#程序。它需要双向沟通。

What is the best way to do this?

做这个的最好方式是什么?

Can it be done in a way that does not require changing Virtual settings?

它可以以不需要更改虚拟设置的方式完成吗?

(the OSs will be XP, Vista, Server 2000 / 2003)

(操作系统将是XP,Vista,Server 2000/2003)

3 个解决方案

#1


3  

WCF. .NET Remoting without the calls to the suicide prevention hotline.

WCF。 .NET Remoting没有拨打自杀预防热线的电话。

#2


4  

Via TCP. Simple client/server setup.

通过TCP。简单的客户/服务器设置。

or

.NET Remoting

#3


1  

WCF is definitely the way to go. Whether or not is requires changing the virtual settings depends on how your virtual machine is set up.

WCF绝对是最佳选择。是否需要更改虚拟设置取决于虚拟机的设置方式。

The most secure way would be to create a new private network that just the host and guest can access. That way you don't have to worry about changing any firewall settings on your main network interface to allow the server and client to communicate.

最安全的方法是创建一个只有主机和访客才能访问的新专用网络。这样您就不必担心更改主网络接口上的任何防火墙设置以允许服务器和客户端进行通信。

OTOH if security isn't a concern then the standard bridged networking options for the guest will work fine.

OTOH如果安全性不是问题,那么客户的标准桥接网络选项将正常工作。

#1


3  

WCF. .NET Remoting without the calls to the suicide prevention hotline.

WCF。 .NET Remoting没有拨打自杀预防热线的电话。

#2


4  

Via TCP. Simple client/server setup.

通过TCP。简单的客户/服务器设置。

or

.NET Remoting

#3


1  

WCF is definitely the way to go. Whether or not is requires changing the virtual settings depends on how your virtual machine is set up.

WCF绝对是最佳选择。是否需要更改虚拟设置取决于虚拟机的设置方式。

The most secure way would be to create a new private network that just the host and guest can access. That way you don't have to worry about changing any firewall settings on your main network interface to allow the server and client to communicate.

最安全的方法是创建一个只有主机和访客才能访问的新专用网络。这样您就不必担心更改主网络接口上的任何防火墙设置以允许服务器和客户端进行通信。

OTOH if security isn't a concern then the standard bridged networking options for the guest will work fine.

OTOH如果安全性不是问题,那么客户的标准桥接网络选项将正常工作。