Home Help Center

Question about Glacier2!

JaneShangJaneShang Member YuLiang, ShangOrganization: Korea Advance Insitute of Science and Technology.Project: Human Robitics Remote Controller
Dear Sir,

We have some problems with Glacier2. The system deployment as follows:

Client: 193.168.10.200

Firewall(NAT): 193.168.10.115(public) 193.168.80.2(private)

Glacier2: 193.168.80.128
Server: 193.168.80.128
And Configuration as follows:

Client Section:
Ice.Default.Router = Glacier2/router: tcp -h 193.168.10.115 -p 10005
Ice.ConnectionIdleTime = 0
Ice.MonitorConnections = 60
Ice.RetryIntervals = -1

Comm.Proxy = comm:tcp -h 193.168.80.128 -p 10000

Glacier2 Section:
Glacier2.Client.Endpoints = tcp -h 193.168.80.128 -p 10005
# No Callback
#Glacier2.Server.Endpoints = tcp -h 193.168.80.128

Server Section:
Comm.Endpoints = tcp -h 193.168.80.128 -p 10000
In our case, Glacier2 and Server are in the same host. And in Firewall, we forward 193.168.10.115:10005 to 193.168.80.128:10005

We start Glacier2 and Server, then start Client.
And the problem is:
After Client create session successfully, and Client read Comm.Proxy property, and try to get this proxy...

In program, the code like:
Ice::ObjectPrx base = communicator->stringToProxy(proxy);
CommPrx comm = CommPrx::checkCast(base);


The Client suspend...
And from ICE trace message, we got that: Client request Glacier/Router on operation: getClientProxy
The message shows that this operation is OK...

By the way, I run Client, Glacier2, Server in one host, everyting is OK..

So what's the problem?

Shang,Y.L.

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    You haven't set Glacier up correctly to work behind a firewall. Take a look at Connections issue 2 where my article on Glacier discusses this issue.

    Regards, Matthew
  • JaneShangJaneShang Member YuLiang, ShangOrganization: Korea Advance Insitute of Science and Technology.Project: Human Robitics Remote Controller
    Thanks!

    Oh, we got the point of problem.

    Glacier2.Client.PublishedEndpoints = ....

    It's a little tricky..

    Anyway, thanks a million.
Sign In or Register to comment.