两个 win2k 虚拟机之间的通信

发布于 2024-12-04 21:42:14 字数 325 浏览 1 评论 0原文

我对虚拟机的研究不多,我需要一些帮助来解决虚拟机问题。这是我的设置。

  • 我有两个 Linux 系统,每个系统上都安装了 Virtual Box VB1 和 VB2。
  • 在每个虚拟框中创建两个来宾 Windows 2000 虚拟机。
  • 配置以太网适配器以使用桥接适配器进行网络连接。

我正在 VB1 上的 win2k 来宾之一上运行 corba 服务器,并在 VB2 上的 win2k 来宾之一上运行客户端。在运行客户端时,我收到连接被拒绝异常。仅当我在两个不同的虚拟机上运行服务器和客户端时才会发生这种情况。

I have not worked much on virtual machines and I need some help in resolving the virtual machine problem. Here is my set up.

  • I have two linux systems with Virtual Box VB1 and VB2 installed on each one.
  • Created two guest windows 2000 virtual machines in each of the virtual box.
  • Configured the ethernet adapter to use Bridge adapter for network connections.

I am running to run a corba server on one of the win2k guest on VB1 and running a client on one of the win2k guest on VB2. On running the client I get connection refused exception. This happens only when I run the server and client on two different virtual boxes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北渚 2024-12-11 21:42:14

“连接被拒绝”仅仅意味着客户端无法打开到服务器计算机的 TCP/IP 连接。这可能是由于以下任一原因造成的:

  • 客户端正在尝试连接到您期望之外的服务器
  • 服务器未侦听传入连接
  • Windows 防火墙阻止来自客户端的传入连接
  • 没有 TCP/IP 连接机器之间根本没有(尽管听起来 DNS 查找正确发生,否则您会看到“未知主机”错误)

这是一个网络问题,因此要诊断它,您应该尝试增加客户端上的日志记录以确保确保它连接到正确的主机/端口。如果这没有帮助,请增加服务器上的日志记录以确保它正在侦听正确的端口。

另外,如果您的 CORBA 应用程序使用不安全的 IIOP,那么您可以随时在客户端上打开 ethereal 嗅探来查看它连接到的地方。

"Connection refused" simply means that the client cannot open a TCP/IP connection to the server computer. That could be due to any of the following reasons:

  • The client is trying to connect to a server other than the one you expect
  • The server is not listening for incoming connections
  • Windows firewall is blocking incoming connections from the client
  • There is no TCP/IP connectivity between the machines at all (although it sounds like the DNS lookup happened correctly, otherwise you would have seen a "unknown host" error)

This is a networking issue, so to diagnose it you should try and increase the logging on your client to make sure it's connecting to the right host/port. If that doesn't help, increase the logging on the server to make sure it's listening on the correct port.

Also, if your CORBA application is using insecure IIOP then you could always turn on ethereal sniffing on your client box to see where it's connecting to.

挽你眉间 2024-12-11 21:42:14

好吧,我自己解决了这个问题。问题在于配置虚拟机。我必须在每个虚拟机中使用“桥接网络适配器”作为NIC卡,之前我使用NAT..所以这解决了问题。

Ok, I myself resolved the issue. The issue was with configuring the virtual machines. I had to use "Bridge Network Adapter" as a NIC card in each of the vm, earlier I was using NAT.. so this solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文