Results 1 to 2 of 2

Thread: Using Ice with non-local hosts

  1. #1
    lahiatt is offline Registered User
    Join Date
    Jun 2005
    Posts
    1

    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?

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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

    Cheers,
    Bernard

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Thread-local memory in Ice service?
    By stwhit in forum Help Center
    Replies: 1
    Last Post: 08-09-2008, 06:52 AM
  2. running the IcePy Demo from diff hosts
    By eritrea in forum Help Center
    Replies: 0
    Last Post: 03-31-2006, 08:01 PM
  3. Multiple Hosts in proxy string ???
    By DeepDiver in forum Help Center
    Replies: 2
    Last Post: 04-20-2005, 11:51 AM
  4. Can IcePack Service and server run in different hosts?
    By eyexercise in forum Help Center
    Replies: 11
    Last Post: 12-19-2004, 08:41 PM
  5. I want to run IcePack on different hosts
    By jinyi.smilodon in forum Help Center
    Replies: 4
    Last Post: 11-23-2004, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •