title: How to connect client (on VirtualBox) and server (on localhost)? I use CORBA and C++/Java
body: <p>I have a simple 'Hello world' <code>C++/Java</code> app with <code>CORBA</code>. Server is written in <code>C++</code>, client in <code>Java</code>. I use omniORBs <code>omniNames</code>, as name service. </p>
  
  <p>I would like to run my <code>omniNames</code> and server on my <code>localhost</code> 
  (Ubuntu) and run my client on Windows XP SP3 in VirtualBox installed on my localhost Ubuntu. </p>
  
  <p>(I mean: on my localhost I have installed Ubuntu OS and in Ubuntu I installed VirtuaBox with Windows XP SP3 'inside'.)</p>
  
  <p>I tried this:</p>
  
  <ol>
  <li>I ran omniNames on my Ubuntu localhost, : <code>omniNames -start</code> </li>
  <li>I ran my server, also on the same computer, localhost with Ubuntu OS:
  <code>./server -ORBInitRef
  NameService=corbaloc::localhost:2809/NameService</code></li>
  <li>I checked my localhosts ip address on site: <a href="http://whatismyipaddress.com/" rel="nofollow">http://whatismyipaddress.com/</a> and
  wrote it down, which was, for example: x.x.x.x</li>
  <li>Turned on Windows XP on VirtualBox, ran client: <code>java client -ORBInitRef NameService=corbaloc::x.x.x.x:2809/NameService</code></li>
  </ol>
  
  <p>but got errors:</p>
  
  <pre><code>C:\Temp\java&gt;java client -ORBInitRef NameService=corbaloc:212.106.19.209:2809/Na
  meService
  pač 10, 2012 3:51:17 PM com.sun.corba.se.impl.naming.namingutil.CorbalocURL badA
  ddress
  WARNING: "IOP00110603: (BAD_PARAM) Bad host address in -ORBInitDef"
  org.omg.CORBA.BAD_PARAM:   vmcid: SUN  minor code: 603  completed: No
          at com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unk
  nown Source)
          at com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unk
  nown Source)
          at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.badAddress(Unknow
  n Source)
          at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.&lt;init&gt;(Unknown So
  urce)
          at com.sun.corba.se.impl.naming.namingutil.INSURLHandler.parseURL(Unknow
  n Source)
          at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(Unknown So
  urce)
          at com.sun.corba.se.impl.resolver.ORBInitRefResolverImpl.resolve(Unknown
   Source)
          at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown
  Source)
          at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown
  Source)
          at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown
  Source)
          at client.main(client.java:28)
  
  C:\Temp\java&gt;
  </code></pre>
  
  <p>Is it possible to connect client and server that way? How should I do this? I have only clients files on Windows XP - nothing more - no nameservice, no server files, just clients program.</p>