Re: Connecting to remote object



Amit Lodh wrote:

> Hi,
>
> I am a new user of ORBit. I am trying to use a remote
> object (server) on a remote machine
> from a client. both the machines are running
> redhat linux (hence ORBit). When I run the client I
> get the 'Cannot bind to' error.
>
> I looked at the FAQ and saw that I have to use
> -ORBIIOPIPv4=1 in the command line. Do I have to use
> it for both server and client? I did the following :
>
> In server I did :
>
> (server-prompt) % myServer -ORBIIOPIPv4=1
>
> In client I did :
>
> (client-prompt) % myClient -ORBIIOPIPv4=1
>
> But is still get 'cannot bind error'
>
> Do I have to change something in the  following call :
> CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev);
>
> I will really appreciate any answer.
>
> Thanks,
> Amit
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/?.refer=text
>
> _______________________________________________
> orbit-list mailing list
> orbit-list gnome org
> http://mail.gnome.org/mailman/listinfo/orbit-list




Dear Amit,

I assume your are getting  started w/ all this so here are some useful
tips for testing.


There are several things you should try:

1) Include ORBIIOPIPv4=1 and ORBIIOPUSock=1 in a file called
/etc/orbitrc ; if does not exist, create it ; DO NOT include ORBIIOPIPv6
for testing
2) Get yourself a copy of iordecode , it's much easier to read.
3) make sure BOTH servers can see each othe by server name ; for testing
do not rely on DNS; Include BOTH servers on the /etc/hosts file on both
machines
4) in /etc/hosts make sure that your loopback is NOT localhost. it
should read: 127.0.0.1      [yourhostname]           [all other aliases
here]
4a) if you do (4) it will screw up your http server, in which you will
have to edit the apache conf file and setup yourservername. be warned
5) before trying connections over the net, test you programas locally by
just moving you client and ior to a different directory.
6) in the iordecode you should see the hostname


some of this stuff might seem stupid, but at the beggining I had many
problems using ORBit and other orbs, and these are my basic testing
steps to get it working.
today we have a very cool environmen running java[w/ JacORB]  and C
[ORBit]


hope this helps.


Alejandro Imass
Caracas, Venezuela















[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]