Using Ice with non-local hosts
In all of the examples I have found in the documentation, it assumes that both the client and the server are running on the same machine (i.e. localhost). Is there a way to get proxies that are on a different machine without using IcePack?
Administrators, ZeroC Staff
Yes, it's feasible, and very common.
For example with the Ice/Hello demo, you need to create endpoints that listen on the desired interface:
Hello.Endpoints=tcp -h serverHostname -p 10000:udp -h serverHostname -p 10000:ssl -h serverHostname -p 10001
(replace serverHostname by the DNS name of your server, or its IP address if it's not in DNS).
Likewise the Hello proxy becomes:
Hello.Proxy=hello:tcp -h serverHostname -p 10000:udp -h serverHostname -p 10000:ssl -h serverHostname -p 10001