Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get ip address and port from stringified IOR?

1,951 views
Skip to first unread message

Adam Dyga

unread,
May 2, 2005, 9:56:37 AM5/2/05
to

Hi,

I'm using OpenORB, my question is in the subject.

Thanks
AD

ckl...@gmail.com

unread,
May 3, 2005, 2:12:10 AM5/3/05
to
In general you don't do that, IORs are ment to be opaque. CORBA
supports multiple transport protocols, not all of which need to be
based on TCP/IP (for example, some ORBs provide some sort of shared
memory based transport), so you may not even have an IP address and
port all the time embedded in the IOR.

Having that said, it is sometimes useful for administrative purposes
"look inside" an IOR. Usually ORBs come with some command line tools
or such to "dump" an IOR in a "human readable" form. If the IOR is
indeed for an IIOP based server, you should see the hostname/port
somewhere in the output. However, even then you should be aware that
you might not see the hostname/port of your actual server object.
Depending on the ORB implementation you may get the values of some sort
of load balancer, Implementation Repository, etc.
(Try google "openorb iordump").

Anyway, I would not use this information for anything else then
informational purposes.

Ciaran McHale

unread,
May 3, 2005, 6:30:34 AM5/3/05
to
Adam Dyga (ad...@NOOSPAMtlen.pl) wrote:
>Hi,
>
>I'm using OpenORB, my question is in the subject.

The CORBA specification does not state how to do that. However, most
CORBA implementations provide a proprietary command-line utility that
will do what you want. These command-line utilities often have names
like "iordump" (Orbix and Orbacus), "catior" (TAO and omniORB) or
"dior" (JacORB). Check your installation of OpenORB to see if it has a
utility with a similar name. If not then the following web site
provides an on-line IOR parser. You just copy-and-paste a stringified
IOR into the form and it will show you the parsed results.

http://www2.parc.com/istl/projects/ILU/parseIOR/

Regards,
Ciaran.

Adam Dyga

unread,
May 3, 2005, 2:05:32 PM5/3/05
to
ckl...@gmail.com wrote:

>
> Anyway, I would not use this information for anything else then
> informational purposes.
>

That's what I need it for...
Thanks
AD

sdj....@gmail.com

unread,
May 7, 2005, 9:18:01 AM5/7/05
to
Hi Adam,

If you look into CORBA spec, IOR is represented as a CORBA::struct with
one of the field as ip address and port no.

If you can open a proper byte stream and read the IOR, do required
padding you may read the content of IOR in a proper manner.

And this is what is done by the utility programmes supplied by ORB
vendors to read the content of the IOR.

0 new messages