|
|
|
||||||
|
Hi,
I want to run GlacierRouter on server. The config is below: Glacier.Router.Endpoints=tcp -h 211.92.163.36 -p 9004 Glacier.Router.Client.Endpoints=tcp -h 211.92.163.36 Glacier.Router.Server.Endpoints=tcp -h 192.168.0.1 The firewall maps the public address 211.92.163.36 and the port 9004 to the server. When I run the GlacierRouter, it fails. The error is below: [ glacierrouter: Network: attempting to bind to tcp socket 211.92.163.36:0 ] glacierrouter: D:\Ice-1.5.1\src\Ice\Network.cpp:377: Ice::SocketException: socket exception: WSAEADDRNOTAVAIL If I modify the config to: Glacier.Router.Endpoints=tcp -p 9004 Glacier.Router.Client.Endpoints=tcp Glacier.Router.Server.Endpoints=tcp -h 192.168.0.1 The GlacierRouter could run but the client caught the exception: [ client: Network: tcp connection established local address = 192.168.0.102:4467 remote address = 211.92.163.36:9004 ] [ client: Protocol: received validate connection message type = 3 (validate connection) compression status = 0 (not compressed; do not compress response, if any) message size = 14 ] [ client: Protocol: sending request message type = 0 (request) compression status = 0 (not compressed; do not compress response, if any) message size = 57 request id = 1 identity = Glacier/router facet = operation = getClientProxy idempotent = true context = ] [ client: Protocol: received reply message type = 2 (reply) compression status = 0 (not compressed; do not compress response, if any) message size = 65 request id = 1 reply status = 0 (ok) ] client: E:\DevTool\ICE\Ice-1.5.1\src\Ice\Network.cpp:509: Ice::ConnectionRefused Exception: connection refused: WSAECONNREFUSED [ client: Protocol: sending close connection message type = 4 (close connection) compression status = 1 (not compressed; compress response, if any) message size = 14 ] [ client: Network: closing tcp connection local address = 192.168.0.102:4467 remote address = 211.92.163.36:9004 ] E:\DevTool\ICE\Ice-1.5.1\demo\Ice\callback>client [ client: Network: tcp connection established local address = 192.168.0.102:4472 remote address = 211.92.163.36:9004 ] [ client: Protocol: received validate connection message type = 3 (validate connection) compression status = 0 (not compressed; do not compress response, if any) message size = 14 ] [ client: Protocol: sending request message type = 0 (request) compression status = 0 (not compressed; do not compress response, if any) message size = 57 request id = 1 identity = Glacier/router facet = operation = getClientProxy idempotent = true context = ] [ client: Protocol: received reply message type = 2 (reply) compression status = 0 (not compressed; do not compress response, if any) message size = 65 request id = 1 reply status = 0 (ok) ] client: E:\DevTool\ICE\Ice-1.5.1\src\Ice\Network.cpp:509: Ice::ConnectionRefused Exception: connection refused: WSAECONNREFUSED [ client: Protocol: sending close connection message type = 4 (close connection) compression status = 1 (not compressed; compress response, if any) message size = 14 ] [ client: Network: closing tcp connection local address = 192.168.0.102:4472 remote address = 211.92.163.36:9004 ] E:\DevTool\ICE\Ice-1.5.1\demo\Ice\callback>client [ client: Network: tcp connection established local address = 192.168.0.102:4477 remote address = 211.92.163.36:9004 ] [ client: Protocol: received validate connection message type = 3 (validate connection) compression status = 0 (not compressed; do not compress response, if any) message size = 14 ] [ client: Protocol: sending request message type = 0 (request) compression status = 0 (not compressed; do not compress response, if any) message size = 57 request id = 1 identity = Glacier/router facet = operation = getClientProxy idempotent = true context = ] [ client: Protocol: received reply message type = 2 (reply) compression status = 0 (not compressed; do not compress response, if any) message size = 65 request id = 1 reply status = 0 (ok) ] client: E:\DevTool\ICE\Ice-1.5.1\src\Ice\Network.cpp:509: Ice::ConnectionRefused Exception: connection refused: WSAECONNREFUSED [ client: Protocol: sending close connection message type = 4 (close connection) compression status = 1 (not compressed; compress response, if any) message size = 14 ] [ client: Network: closing tcp connection local address = 192.168.0.102:4477 remote address = 211.92.163.36:9004 ]
__________________
Fengxb |
|
||||||
|
You cannot run Glacier behind a firewall. Glacier *is* the firewall, meaning that Glacier itself must run on a host that has a connection to both the public internet and the internal network.
Furthermore, Glacier (if you use both the starter and the router) cannot be limited to use one port only. It will use one random port per client. This will be changed with Glacier 2, i.e, Glacier 2 will only require one open port. You should trace with Ice.Trace.Network=2, so that connection attempts are also traced. With Ice.Trace.Network=1, only connection attempts are traced. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about Glacier.Router.Client.Endpoints in Glacier! | rc_hz | Help Center | 4 | 11-21-2004 11:22 PM |
| about glacier and router | li.c++ | Help Center | 0 | 10-22-2004 06:16 AM |
| Glacier work only if ssl instaled? | Dmitriy | Help Center | 1 | 06-18-2004 09:17 AM |
| Glacier Filtering | StuartA | Help Center | 9 | 05-04-2004 08:51 AM |
| Callback and Glacier Example? | feline | Help Center | 5 | 03-22-2004 05:33 PM |