Using Ice under Unix and Windows

fengshenghelifengshengheli Member zhang mqOrganization: sddlProject: substation
In Linux(fedora 8)
I write server and client in Linux. It works well.
I write server and client in Windows. It works well,too.
But,I write server in Linux,client in Windows. It does not work.
The client throws an exception.

Network.cpp:1224: Ice::ConnectFailedException:
connect failed:WSAEHOSTUNREACH

I don't know the reason.
Please help me.
Thank you!

Linux:(fedora 8)
codeblocks+gcc
Windows:(winxp)
vs2008

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    The Ice run time in the client is attempting to establish a connection to the IP address you provided in the proxy (192.168.2.61), and Windows is apparently unable to reach that address. You can try running both server and client with the command-line option --Ice.Trace.Network=3 to see more information about Ice's network activity.

    You should also verify that you have connectivity between the two hosts. For example, can you ping 192.168.2.61 from the client machine? Can you telnet to port 7777 on 192.168.2.61?

    Regards,
    Mark
  • fengshenghelifengshengheli Member zhang mqOrganization: sddlProject: substation
    I have solved this problem

    Thank you!
    My fedora works on vmware that in my winxp system. That is perhaps the crux of the problem.
    The server runs on the another fedora not using vmare workstation. So it works well.
    I don't know why. Is it a bug of ICE?
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    I don't think it's a bug in Ice. It's much more likely that a "host unreachable" exception is caused by a configuration error or networking issue in the client machine.

    Regards,
    Mark
Sign In or Register to comment.