|
|
|
|||||
|
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. *********************** |
|
|||||
|
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. *********************** |
|
||||||
|
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. |
![]() |
| 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 |
| 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 |