Home Help Center

how to set ice config "-h " parameter

seacathelloseacathello Member hu jingOrganization: Nanjing universityProject: information distribute project
suppose I have a ice service server which ip is "192.168.10.1".

A ice client who want communicate with the server must set ice.config "-h 192.168.10.1"

if the ice server set ice.config "-h localhost" not "-h 192.168.10.1", the client can not communicate with it.

So, I want to know how to set the ice server ice.config "-h" parameter(don't like set like "-h 192.168.10.1"), a client can communicate with it "-h 192.168.10.1";

Thanks for any reply.

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    If you don't want to specify the -h option in the server endpoints, you can use the Ice.Default.Host=192.168.10.1 property in the server configuration file to change the default host.

    Cheers,
    Benoit.
  • seacathelloseacathello Member hu jingOrganization: Nanjing universityProject: information distribute project
    benoit, I tried your suggestion.it works very well, thanks.
Sign In or Register to comment.