Home Help Center

A question about Client and Server program in different host

eheroehero Member
For example, Client.exe in 192.168.1.101
Server.exe in 192.168.1.102
How to run Client.exe with command argument to communicate with Server.exe?
There is no reference in the Document of Ice1.5 and Ice2.0.
Please help me.

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Assuming you're using the client and server from the Ice hello demo (located in Ice-2.1.0/demo/Ice/hello), you just need to change the following properties in the configuration file:
    • Hello.Endpoints=tcp -h 192.168.1.102 -p 10000, this property will instruct the server `Hello' object adapter to listen on the network interface with the ip address 192.168.1.102 and the port 10000. This property is only used by the server.
    • Hello.Proxy=hello:tcp -p 10000 -h 192.168.1.102, this property is used by the client to find the `hello' object. This property is only used by the client.

    Let us know if you need more information!

    Benoit.
Sign In or Register to comment.