Home Help Center

Configure ICE Endpoints to particular subnet

rspurgeonrspurgeon Member Rick SpurgeonOrganization: DV TradingProject: Distributed Trading Platform
I have the need to deploy ICE based applications onto multihommed machines. I want the applications listening enpdoints to be restricted to a particular subnet. I can achieve this goal by modifying the ICE configuration like this, for instance:

Ice.Default.Host=10.10.1.1

However, I would need to statically configure all of my applications to bind to a particular IP address that is only valid on each machine. This would impose fragile configuration on the hosts and make it harder to deploy new server instances. If I remove this setting, ICE will listen on all available hosts. Is it possible configure ICE to listen on all available host IP's within a particular subnet either using wildcars or subnet masks in some way? It'd be great if I could say something like...

Ice.Default.Host=10.10.1.*

I'm a little behind on IP configuration and networking so please excuse me if I'm missing something simple.

Thanks

Comments

  • rspurgeonrspurgeon Member Rick SpurgeonOrganization: DV TradingProject: Distributed Trading Platform
    ____bump____
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Sorry, this isn't possible right now. You need to specify the IP address of the interface you want to listen on if you don't want to listen on all the interfaces.

    Rather than setting this property in a configuration file, could you perhaps set it on the command line after obtaining the value from an environment variable or through a script? Another option would be to implement this in your server but this will require using some OS specific networking code to obtain the list of IP addresses the machine can listen on.

    We will consider improving this in a future release.

    Cheers,
    Benoit.
  • rspurgeonrspurgeon Member Rick SpurgeonOrganization: DV TradingProject: Distributed Trading Platform
    Understood, thanks for the response Benoit
Sign In or Register to comment.