Archived
This forum has been archived. Please start a new discussion on GitHub.
Multi networks
alfredt
in Help Center
Is there a way to make the Object adapter sit on a particular network ?
ie the machine has 192.168.1.x and 192.168.3.x as its networks.
192.168.3.x is used for internet traffic and I want all ICE traffic to happen on the 192.168.2.x network.
Thanks
Alfred
ie the machine has 192.168.1.x and 192.168.3.x as its networks.
192.168.3.x is used for internet traffic and I want all ICE traffic to happen on the 192.168.2.x network.
Thanks
Alfred
0
Comments
-
Hi Alfred,
You just need to specify the IP address in the object adapter endpoints. There's 2 ways to specify the object adapter endpoints depending on how you create it:- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("MyAdapter", "tcp -h 192.168.1.1 -p 12345 ");
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("MyAdapter"); and specify the "MyAdapter.Endpoints=tcp -h 192.168.1.1 -p 12345" configuration property in a configuration file or on the command line.
Benoit.0
