[Kstars-devel] Server connection (solution?)
Gaetano Vocca
yagvoc-web at yahoo.it
Sat Mar 12 01:23:50 CET 2005
Dear all,
still about the connection problem previously described, I think the key is at
line 294 of indiserver.c:
serv_socket.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
for the little I know this line, together with the following "bind" forces the
server accepting connections only from local addresses.
Shouldn't it be changed into
serv_socket.sin_addr.s_addr = htonl (INADDR_ANY);
to allow connection from any host?
Gaetano
On Thursday 10 March 2005 22:51, Gaetano Vocca wrote:
> Hello Jasem,
> in the meanwhile I have made another little test.
> While running the CVS KStars as server I tried to connect it by using a
> small Perl script from another machine (Suse 9.2). The result is the
> same:Connection refused. This makes me think that the problem, if any, is
> on the server side. I also double checked for any iptables rules active in
> my kernel but couldn't find any. I can also say that if I run server and
> client on the same pc everything works fine.
>
> Investigation goes on....
>
> Cheers
> Gaetano
>
> Jasem Mutlaq wrote:
> > Hello Gaetano,
> >
> > On Friday 11 March 2005 01:05 am, Gaetano Vocca wrote:
> > > Dear all,
> > > I wanted to perform some tests about remote connection with a machine
> > > running KStars and an INDI in server mode but I am unable to connect
> > > from a client with any server I start.
> > > I start a driver (i.e. fliccd) in server mode on one machine using an
> > > instance of KStars and then I try to connect from another machine
> > > configuring a client on the given server port with another KStars. What
> > > I get back is an error dialog with a message like "Connection to INDI
> > > host at 192.168... on port 7268 failed" .
> > > The KStars "server" is the cvs version while the client is KStars 1.0
> > > using KDE 3.3.2
> > >
> > > If I swap the roles using the KStars 1.0 as server and the cvs version
> > > as client everything works fine. Did anything change in the code?
> >
> > I'm using CVS here and I cannot reproduce the problem. But INDI's code,
> > including that for network, was patched several times recently. A lot of
> > the changes were in the client side of KStars, so this explains why an
> > old version cannot communicate with the newer patched INDI.
> >
> > Try again with two CVS versions and let me know if you still encounter
> > the problem.
> >
> > Regards,
> > Jasem
> >
> > _______________________________________________
> > Kstars-devel mailing list
> > Kstars-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/kstars-devel
>
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kstars-devel/attachments/20050312/b43a00bd/attachment-0001.html
More information about the Kstars-devel
mailing list