[omniORB] IP Address vs. Hostname

andreas@florath.net andreas@florath.net
Mon May 5 09:17:01 2003


Hello everybody!


	I have a question about omniORB's IORs.  In the FAQ 
(http://omniorb.sourceforge.net/cgi-bin/moin.cgi/FrequentlyAskedQuestions)
in the answer to question 3.0.4 is written:

> When omniORB creates an IOR, it always put the IP address, instead
> of the hostname into it. So it does a name lookup for the host name
> and with the above setup it gets 127.0.0.1.


	But when I query my CORBA name server 'omniNames' (also only
servers using omniOrb are used!), I found the hostname in the IOR: (the
hostname is called 'common')

IOR:000000000000002b49444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e3000000000000100000000000000720001020000000007636f6d6d6f6e000036c6000000000006ff000000000900000000000300000000000000080000000041545400000000010000001c0000000000010001000000010501000100010109000000010001010900000003000000120000000000000007636f6d6d6f6e000036b2

	Or (readable):
Type ID: "IDL:omg.org/CosNaming/NamingContextExt:1.0"
Profiles:
1. IIOP 1.2 common 14022 "......"
            TAG_ORB_TYPE omniORB
            TAG_CODE_SETS char native code set: ISO-8859-1
                          char conversion code set: UTF-8
                          wchar native code set: UTF-16
                          wchar conversion code set: UTF-16
            
            TAG_ALTERNATE_IIOP_ADDRESS common 14002


	And: when doing the same thing on another machine (same
binaries/libs) the ip address is used instead.  (Also additional
-ORBendPoint doesn't help here.)


	I'm using omniOrb 4.0.0.


	My questions:

1) Is the answer in the FAQ outdated (i. e. wrong) or is it just a
   special case for 127.0.0.1?

2) When does omniORB put the IP adress in the IOR and when the
   hostname?

	A reference to the omniOrb source where the IOR is build would
be great! 


	Best regards

	Andreas Florath
	andreas@florath.net