Archived

This forum has been archived. Please start a new discussion on GitHub.

Icegrid host names

Suppose I have 3 computers (assume DNS names PC1, PC2 and PC3), one running a registry and the other two running one node each. My question is: which properties should be supplied with these DNS names? Can I omit any explicit DNS usage in the properties below?

icegridregistry properties (PC1):
IceGrid.Registry.Client.Endpoints=default -h PC1 -p 4061
IceGrid.Registry.Server.Endpoints=default -h PC1
IceGrid.Registry.Internal.Endpoints=default -h PC1

icegridnode properties (PC2):
IceGrid.Node.Endpoints=default -h PC2

icegridnode properties (PC3):
IceGrid.Node.Endpoints=default -h PC3

Comments

  • bernard
    bernard Jupiter, FL
    Hi Wout,

    Each of your IceGrid nodes needs to connect to the IceGrid registry, which is achieved with:
    Ice.Default.Locator=default -h PC1 -p 4061
    

    in the node configuration.

    Then, in IceGrid.Node.Endpoints, IceGrid.Registry.Server.Endpoints and IceGrid.Registry.Internal.Endpoints, you may or not specify "-h PCx" depending on your situation. No "-h" is equivalent to "-h *", and configures this object adapter to listen on all network interfaces.

    If PC2 and PC3 have just one external network interface, then no -h or -h * should be fine. If PC2 or PC3 has multiple network interfaces, and you can only use a specific interface for Ice communications between these PCs, then use -h <name>, where <name> is a DNS name that designates the desired network interface.

    See Object Adapter Endpoints - Ice 3.5 - ZeroC for more details.

    Best regards,
    Bernard
  • Thanks for your prompt response!

    I can omit "-h" on PC2 and PC3, but not on PC1. On PC1 I get a SocketException (WSAEAFNOSUPPORT) when I omit the "-h PC1" in client, server or internal properties. This also happens when I start a node on PC1, so it's not registry specific.

    All PC's have only 1 network card, next to some VMWare adapters. The only difference is that PC1 = XP 64bit and PC2,PC3 = Win7 64bit. I have Ice.IPv6=0 on all machines. In any case, since PC1 is the main PC, I can live with specifying its DNS name.
  • benoit
    benoit Rennes, France
    Hi,

    It's not clear to me why you get this exception. Can you copy paste the error message that shows the Ice::SocketException? You could also try to enable Ice.Trace.Network=2 on the registry on PC1, this should print some tracing that might show the problematic address.

    Cheers,
    Benoit.
  • bernard
    bernard Jupiter, FL
    The only difference is that PC1 = XP 64bit and PC2,PC3 = Win7 64bit.

    Note that no version of Ice supports XP 64 bits. See ZeroC - Supported Platforms for Ice 3.5.1. This does not mean it does not work for sure - just that we didn't test and don't support this platform.

    Best regards,
    Bernard
  • The IP address of PC1 is replaced with "xxx.xxx.xxx.xx". Without DNS name
    IceGrid.Registry.Client.Endpoints=default -p 4061
    IceGrid.Registry.Server.Endpoints=default
    IceGrid.Registry.Internal.Endpoints=default
    

    I get the following trace:
    -- 07/04/14 10:23:30.095 icegridregistry: Network: trying to establish tcp connection to 127.0.0.1:4061
    -- 07/04/14 10:23:31.048 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = 127.0.0.1:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:23:31.048 icegridregistry: Network: trying to establish tcp connection to :4061
    -- 07/04/14 10:23:31.048 icegridregistry: Network: failed to establish tcp connection to :4061
       Network.cpp:181: Ice::SocketException:
       socket exception: WSAEAFNOSUPPORT
    -- 07/04/14 10:23:31.048 icegridregistry: Network: trying to establish tcp connection to 127.0.0.1:4061
    -- 07/04/14 10:23:32.048 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = 127.0.0.1:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:23:32.048 icegridregistry: Network: trying to establish tcp connection to :4061
    -- 07/04/14 10:23:32.048 icegridregistry: Network: failed to establish tcp connection to :4061
       Network.cpp:181: Ice::SocketException:
       socket exception: WSAEAFNOSUPPORT
    !! 07/04/14 10:23:32.048 icegridregistry: error: service caught unhandled exception:
       Network.cpp:181: Ice::SocketException:
       socket exception: WSAEAFNOSUPPORT
    

    With DNS name
    IceGrid.Registry.Client.Endpoints=default -h PC1 -p 4061
    IceGrid.Registry.Server.Endpoints=default -h PC1
    IceGrid.Registry.Internal.Endpoints=default -h PC1
    

    I get the following trace:
    -- 07/04/14 10:32:53.173 icegridregistry: Network: trying to establish tcp connection to 192.168.238.1:4061
    -- 07/04/14 10:32:54.126 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = 192.168.238.1:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:32:54.126 icegridregistry: Network: trying to establish tcp connection to 192.168.216.1:4061
    -- 07/04/14 10:32:55.126 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = 192.168.216.1:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:32:55.126 icegridregistry: Network: trying to establish tcp connection to xxx.xxx.xxx.xx:4061
    -- 07/04/14 10:32:56.126 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = xxx.xxx.xxx.xx:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:32:56.126 icegridregistry: Network: trying to establish tcp connection to 192.168.238.1:4061
    -- 07/04/14 10:32:57.141 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = 192.168.238.1:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:32:57.141 icegridregistry: Network: trying to establish tcp connection to 192.168.216.1:4061
    -- 07/04/14 10:32:58.141 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = 192.168.216.1:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:32:58.141 icegridregistry: Network: trying to establish tcp connection to xxx.xxx.xxx.xx:4061
    -- 07/04/14 10:32:59.157 icegridregistry: Network: failed to establish tcp connection
       local address = <not available>
       remote address = xxx.xxx.xxx.xx:4061
       Network.cpp:2513: Ice::ConnectionRefusedException:
       connection refused: The remote system refused the network connection.
    -- 07/04/14 10:32:59.157 icegridregistry: Network: attempting to bind to tcp socket xxx.xxx.xxx.xx:0
    -- 07/04/14 10:32:59.157 icegridregistry: Network: listening for tcp connections at xxx.xxx.xxx.xx:4759
    -- 07/04/14 10:32:59.157 icegridregistry: Network: published endpoints for object adapter `IceGrid.Registry.Internal':
       tcp -h PC1 -p 4759
    -- 07/04/14 10:32:59.157 icegridregistry: Network: accepting tcp connections at xxx.xxx.xxx.xx:4759
    -- 07/04/14 10:32:59.157 icegridregistry: Network: trying to establish tcp connection to xxx.xxx.xxx.xx:4759
    -- 07/04/14 10:32:59.157 icegridregistry: Network: tcp connection established
       local address = xxx.xxx.xxx.xx:4760
       remote address = xxx.xxx.xxx.xx:4759
    -- 07/04/14 10:32:59.157 icegridregistry: Network: accepted tcp connection
       local address = xxx.xxx.xxx.xx:4759
       remote address = xxx.xxx.xxx.xx:4760
    -- 07/04/14 10:32:59.157 icegridregistry: Network: tcp connection established
       local address = xxx.xxx.xxx.xx:4759
       remote address = xxx.xxx.xxx.xx:4760
    -- 07/04/14 10:33:00.298 icegridregistry: Network: attempting to bind to tcp socket xxx.xxx.xxx.xx:0
    -- 07/04/14 10:33:00.313 icegridregistry: Network: listening for tcp connections at xxx.xxx.xxx.xx:4761
    -- 07/04/14 10:33:00.313 icegridregistry: Network: published endpoints for object adapter `IceGrid.Registry.Server':
       tcp -h PC1 -p 4761
    -- 07/04/14 10:33:00.313 icegridregistry: Network: attempting to bind to tcp socket xxx.xxx.xxx.xx:4061
    -- 07/04/14 10:33:00.313 icegridregistry: Network: listening for tcp connections at xxx.xxx.xxx.xx:4061
    -- 07/04/14 10:33:00.313 icegridregistry: Network: published endpoints for object adapter `IceGrid.Registry.Client':
       tcp -h PC1 -p 4061
    -- 07/04/14 10:33:00.438 icegridregistry: Network: accepting tcp connections at xxx.xxx.xxx.xx:4761
    -- 07/04/14 10:33:00.438 icegridregistry: Network: accepting tcp connections at xxx.xxx.xxx.xx:4061
    

    This is the ipconfig output
    Windows IP Configuration
    Ethernet adapter VMware Network Adapter VMnet8:
       Connection-specific DNS Suffix  . : 
       IP Address. . . . . . . . . . . . : 192.168.216.1
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 
    
    Ethernet adapter VMware Network Adapter VMnet1:
       Connection-specific DNS Suffix  . : 
       IP Address. . . . . . . . . . . . : 192.168.238.1
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 
    
    Ethernet adapter Local Area Connection:
    
       Connection-specific DNS Suffix  . : domain.name
       IP Address. . . . . . . . . . . . : xxx.xxx.xxx.xx
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : yyy.yyy.yyy.yyy
    
  • benoit
    benoit Rennes, France
    Hi,

    Which Ice version do you use? Are you sure IPv6 is disabled in the registry configuration file? It looks like IPv6 is still enabled and Ice tries to use the IPv6 address (but it doesn't work, we don't support IPv6 on XP). The best would be to upgrade to a supported operating system.

    Cheers,
    Benoit.
  • You're right, I didn't set IPv6 on the proper location. It was in the icebox configuration, which worked fine before I started using IceGrid. Of course now I need to give it to icegridnode and icegridregistry. Thanks!