ZeroC

Archived

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

Use ICE through the Internet

edymont
edymont
Hello guys. I'm starting to use ICE. I would like to know how is it possible to use ICE Middleware in different LAN. I suppose that in the same LAN, there is no problem at all. But, how can I use a Server and a Client in different LAN and still work?

I was reading the Manual, and I saw the Hello World example. I'm pretty sure that in different LAN it might not work. What do I have to change in the code to make it work?

Comments

  • bernard
    bernard Jupiter, FL
    Hi Edwaldo,

    Welcome to our forums!

    For Ice, there is really no difference whether your client and server are on the same network or on separate networks; the underlying transport (TCP or UDP) takes care of the routing.

    In order to run a demo with the client and server on separate hosts, you just need to update the demo configuration:
    http://www.zeroc.com/faq/demoHosts.html

    When your client and server are on separate networks, you may have one or more firewalls between them, and sometimes routers doing NAT. In this case, you'll need to configure these firewalls to allow Ice communications to go through. For more information on firewall and NAT traversal with Ice, see:

    http://www.zeroc.com/faq/configurationForNAT.html
    http://www.zeroc.com/doc/Ice-3.4.0/manual/Glacier2.43.2.html
    http://www.zeroc.com/chat/firewalls.html
    and "Teach yourself Glacier2 in 10 minutes" in http://www.zeroc.com/newsletter/issue22.pdf

    Best regards,
    Bernard
  • edymont
    edymont
    Thanks bernard! I appreciated! It helped a lot!

    Just one thing I didn't get. Do these config files exist somewhere in the ICE directory or do I have to create them?

    ICE is excelent!
  • bernard
    bernard Jupiter, FL
    Most demos have 2 config files: config.client and config.server.

    Cheers,
    Bernard