无法从主机操作系统连接到来宾操作系统

Bhu*_*han 5 tcp port opensuse vmware-player

我已作为来宾操作系统安装OpenSUSEVMWare player而我的主机操作系统是Windows XP. 我想要实现的是从我的主机(即 XP)发送消息,比如在端口 7000 上并在我的来宾上的特定端口上接收它,即OpenSUSE在端口 10000 上。我有一个软件,可以使用它发送任何消息在指定的端口上。(该软件使用TCP.)

我很确定我不是地球上第一个面临这种情况的人。但我对这个VMWare player甚至OpenSUSE. 任何人都可以指导我吗?

编辑 1:

ifconfigOpenSUSE 上的输出:

Directory: /root
Tue May 24 14:58:18 EDT 2011
linux-gyuz:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:B9:F4:AF  
          inet addr:192.168.206.128  Bcast:192.168.206.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:feb9:f4af/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4621 errors:0 dropped:0 overruns:0 frame:0
          TX packets:903 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6379045 (6.0 Mb)  TX bytes:75021 (73.2 Kb)
          Interrupt:19 Base address:0x2000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:72 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4960 (4.8 Kb)  TX bytes:4960 (4.8 Kb)

linux-gyuz:~ #                                                                                                                                                                                                                               
Run Code Online (Sandbox Code Playgroud)

编辑 2: ipconfig /all on 的输出XP

Windows IP 配置

以太网适配器本地连接:

    Connection-specific DNS Suffix  . : mycomp.com
    IP Address. . . . . . . . . . . . : 205.142.113.181
    Subnet Mask . . . . . . . . . . . : 255.255.254.0
    Default Gateway . . . . . . . . . : 205.142.112.1
Run Code Online (Sandbox Code Playgroud)

C:\Documents and Settings\user>ipconfig /all

Windows IP 配置

        Host Name . . . . . . . . . . . . : R8PPAV7
        Primary Dns Suffix  . . . . . . . : mycomp.com
        Node Type . . . . . . . . . . . . : Peer-Peer
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : mycomp.com
                                            mycomp.com

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : mycomp.com
        Description . . . . . . . . . . . : Intel(R) 82567LF Gigabit Network Con
nection
        Physical Address. . . . . . . . . : 00-24-7E-DC-A4-A0
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 205.142.113.181
        Subnet Mask . . . . . . . . . . . : 255.255.254.0
        Default Gateway . . . . . . . . . : 205.142.112.1
        DHCP Server . . . . . . . . . . . : 205.142.112.212
        DNS Servers . . . . . . . . . . . : 205.142.112.89
                                            205.142.112.103
        Primary WINS Server . . . . . . . : 205.142.112.89
        Secondary WINS Server . . . . . . : 205.142.112.103
        Lease Obtained. . . . . . . . . . : Tuesday, May 24, 2011 1:03:31 PM
        Lease Expires . . . . . . . . . . : Tuesday, May 24, 2011 9:03:31 PM
Run Code Online (Sandbox Code Playgroud)

Cod*_*ing 0

VMware Player 下有多种可用的网络模式,但所有这些模式都为您的来宾操作系统提供 IP 以及与主机操作系统的网络连接。所以(就像它是一台单独的物理机一样)您只需要指向您的访客的 IP :)

在大多数版本的 Linux(包括 OpenSuse)中,您可以运行ifconfig来查看分配给每个接口的 IP 地址。