
Originally Posted by
undici77
1) Is it possible to force icegrid to work only in LOOP BACK (127.0.0.1)?
Yes. There are two ways you can accomplish this:
1. Add -h 127.0.0.1 to the endpoint configurations of IceGrid node/registry, and to the endpoint configurations of your application's object adapters. For example:
Code:
IceGrid.Node.Endpoints=default -h 127.0.0.1
and
Code:
<adapter name="atsPlcBackoff" endpoints="tcp -h 127.0.0.1">
2. Or, you can define Ice.Default.Host=127.0.0.1 for the IceGrid node/registry and your application servers.
2) Is it possible to fix my servers port using IceGrid only like a DNS server?
I'm not quite sure what you're asking here. You can certainly specify fixed points in all of your endpoints. For example:
Code:
IceGrid.Node.Endpoints=default -h 127.0.0.1 -p 5001
and
Code:
<adapter name="atsPlcBackoff" endpoints="tcp -h 127.0.0.1 -p 5002">
Of course, you need to be sure that the ports you choose won't be in use by another program.
3) Glacier2 use really only one port, or dynamically when a new client require a connection, open some random ports?
Glacier2 is an intermediary. It accepts connections from clients on a single port, and then it opens multiple outgoing connections to "back end" servers. Furthermore, if your servers send callback invocations to clients, then Glacier2 will also need to open a second port on which it accepts these callback connections from the back end servers.
Regards,
Mark