Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-29-2004
tony_h tony_h is offline
Registered User
 
 
Join Date: Feb 2004
Posts: 21
Wrong IP for client Callback

I have used the demo client callback for basis of my code.
The problem I have is that the proxy it creates is for my internal network IP address .
When I pass this out to our server on the internet , it cannot callback because the proxy contains the internal IP instead of the external (router) IP.

Is there any way around this other then having to specify host name in the client endpoints.
Reply With Quote
  #2 (permalink)  
Old 09-29-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi Tony,

The proper way to solve this in Ice is to run Glacier as your server's firewall/router. This allows your client to use a bidirectional connection, avoiding the need for the server to establish a separate connection back to a client that is protected by a NAT firewall. Take a look at the Glacier chapter in the manual for more information.

Also, the configuration for the callback demo can be edited to enable Glacier support, if you want to try it out.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 09-29-2004
Binary Binary is offline
Registered User
 
 
Join Date: Sep 2004
Posts: 11
why not trying Glacier?
Reply With Quote
  #4 (permalink)  
Old 09-30-2004
tony_h tony_h is offline
Registered User
 
 
Join Date: Feb 2004
Posts: 21
To keep thing simple, we were hoping to avoid having a glacier router on the server.
To cover connections from clients with different network configurations, looks like we will have to investigate using glacier.

I had another question related to this - how would it (glacier) handle two clients connecting through internet to server when both clients are on the same private network. In this case they would both have same external IP.
Reply With Quote
  #5 (permalink)  
Old 09-30-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

That potential problem with NAT clients is avoided by using bidirectional connections, meaning the server sends a callback request on the same connection that the client established to the server. Therefore it doesn't matter if clients appear to have the same IP address, because that address is never used to establish a connection.

Also note that the next Ice release will feature an alternative Glacier implementation ("Glacier2") that uses fewer resources: it only requires a single external port, and doesn't spawn child processes.

Take care,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Callback on legacy client without callback support causes deadlock? timeguest Help Center 1 07-30-2005 08:12 AM
sth wrong with the client written in Python and Server written in C++ hardaway Help Center 5 06-15-2005 10:47 AM
Client Disconnect Callback tony_h Help Center 1 09-21-2004 12:41 PM
Manipulating a callback proxy in the client code catalin Help Center 1 09-20-2004 01:24 PM
What's wrong with the example? lisiliao Help Center 2 05-04-2004 02:43 AM


All times are GMT -4. The time now is 12:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.