Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-28-2006
JimSec JimSec is offline
Registered User
 
 
Join Date: Jul 2006
Posts: 3
Random ports with Topic Manager

Greetings,

Our restraints on our project are rather strict. I’ve found that Ice meets all of our criteria aside from a few port issues I’m having. In order to use Ice (specifically IceStorm), I need a list of ports that Ice will use. I’ve managed to make each port to be used known - aside from two.

When publishing with IceStorm, the following:

topicManager = IceStorm::TopicManagerPrx::checkedCast(proxyObject );

establishes a connection to the icebox server, but uses a random local port. This also happens when calling the RPC.

Is it possible to configure these to use a known port (ex. 13000)?

Thanks for your help!

OS: Win, Linux, Solaris, OSX
Ice version: 3.1.0
__________________
***********************
Jim Jensen
URL: None Yet
Project Name: In the works
Desc.: An API used for autonomous ground systems.
***********************
Reply With Quote
  #2 (permalink)  
Old 08-28-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Hi,

Yes, you can configure a fixed port for the the topic manager and publish endpoints of the IceStorm service. See the documentation of the following properties in the Ice manual:

IceStorm.TopicManager.Endpoints
IceStorm.Publisher.Endpoints
Note that these property names assume that the service name of your IceStorm service is "IceStorm". If it's not, you should replace "IceStorm" with the name of your service (e.g.: MyService.TopicManager.Endpoints). I also recommend to take a look at the section 42.9 in the Ice manual where it explains how to configure IceStorm.

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 08-29-2006
JimSec JimSec is offline
Registered User
 
 
Join Date: Jul 2006
Posts: 3
Benoit,

From my understanding, those config items are to be used for the icebox server. What I was referring to was configuring the subscriber/publisher’s topic manager local port.

Using the IceStorm examples:
---------------------------------------------
#config.pub
IceStorm.TopicManager.Proxy=DemoIceStorm/TopicManager:default -h 10.x.x.xx2 -p 9000
Ice.Trace.Network=1
---------------------------------------------
$ ./publisher
[ ./publisher: Network: tcp connection established
local address = 10.x.x.xx7:42550
remote address = 10.x.x.xx2:9000 ]
publishing 10 tick events
[ ./publisher: Network: tcp connection established
local address = 10.x.x.xx7:42551
remote address = 10.x.x.xx2:9500 ]
[ ./publisher: Network: closing tcp connection
remote address = 10.x.x.xx2:9000 ]
[ ./publisher: Network: closing tcp connection
local address = 10.x.x.xx7:42551
remote address = 10.x.x.xx2:9500 ]
---------------------------------------------
How can I prevent my local address from connecting using a random port (in this case 42550 and 42551)?

Also, thanks for the extremely fast response!
__________________
***********************
Jim Jensen
URL: None Yet
Project Name: In the works
Desc.: An API used for autonomous ground systems.
***********************
Reply With Quote
  #4 (permalink)  
Old 08-29-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Ice does only allow you to choose the ports for incoming connections (i.e., the ports that servers listen to), but it does not allow you to choose the ports for outgoing connections (i.e., the ports that clients use to establish a connection).

If you have a commercial interest in such a feature, please contact us at info@zeroc.com.
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
Why many ports are opend? skyriver Help Center 8 08-17-2005 03:31 AM
Why Ice open several ports at 127.0.0.1? timeguest Help Center 7 04-22-2005 08:43 AM
Topic Federation freshman Help Center 4 12-09-2004 10:53 PM
why many TCP ports opened for listening yomi Help Center 4 11-10-2004 08:40 PM
How to realize login manager with ICE? dzw Help Center 6 08-02-2004 03:06 AM


All times are GMT -4. The time now is 11:42 PM.


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