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

Unable to connect to localhost

0 views
Skip to first unread message

Neil Weller

unread,
Jun 12, 2001, 2:46:54 PM6/12/01
to
I have posted this in another message but I guess I wasn't clear enough
so I'll have another go.

I have a linux machine that is running Redhat 7.0

I have installed onto it the Interbase 6.01 SS edition.

I have the client tools installed on a Win2k machine on the network.

I have put all localhost into hosts.equiv, the services file has the
correct entries.

If I try to register the server from Win2k I get a message saying
"Unable to connect to localhost. Connection reset by peer."

If I try to connect locally on the linux machine using ISQL then I get
the same message.

Does anyone have any ideas or suggestions? I have been through the
groups vi google and I have looked at the FAQ's but still no joy.

Thanks in advance, and thanks Shawn for trying.
Neil

Shawn

unread,
Jun 13, 2001, 1:13:22 PM6/13/01
to
Ne...@timewave.co.uk (Neil Weller) wrote in <3B26639E.734E689
@timewave.co.uk>:

>I have put all localhost into hosts.equiv, the services file has the
>correct entries.

I'm not sure exactly what you mean by this. Could you post your
hosts.equiv file?

All putting 'localhost' into the hosts.equiv (I assume on the RH box) does
is tell apps running on the RH box where to point to when you give them the
domain of 'localhost'. It does nothing for apps run on the Win2k box.

If, on the other hand, you're talking about the hosts.equiv file on the
Win2k box: Again, this only tells apps to look at the Win2k box when you
specify 'localhost'. It doesn't redirect them to the RH box.

If you want to connect to the RH box, you need to specify *that* server -
not 'localhost'.

>If I try to register the server from Win2k I get a message saying
>"Unable to connect to localhost. Connection reset by peer."

This message indicates that IBConsole is attempting to register a server on
the local (Win2k) machine - which you've already stated is not on Win2k,
but on the RH box.

This is my suggestion: Forget about 'localhost' and other domain names.
Instead, attempt to register the server - as a Remote Server - via TCP/IP
and use the IP address. This allows you to bypass domain name resolution
(the hosts.equiv file) entirely. If you still can't connect, troubleshoot
the problem from there. If you *can* connect, then the problem is in how
you've configured your domain names (which, based on what you've said so
far, is what I believe to be the case).

- Shawn

--
Renaissance Programmer
http://www.southern.eskimo.net/dodger/
[ VB/C/C++/ASP/PHP/Javascript/Perl ]

[This address belongs to a Washington State resident and
is therefore protected from unsolicited commercial e-mail by
RCW 19.190. Monetary penalties apply for each offense.]

Neil Weller

unread,
Jun 13, 2001, 3:42:49 PM6/13/01
to Shawn
Shawn,

To make things simpler lets forget about the Win2K box and concentrate on the
RH box.

/etc/hosts.equiv contains:

localhost.localdomain

That is all, I have tried putting in just "localhost" and also the machine name
which is "Preprod" all to no avail.

The hosts file on the RH box contains:

127.0.0.1 localhost.localdomain predprod
plus a couple of other machine details.

I have added a + to gds_hosts.equiv as mentioned on a couple of other messages.

Then, if I try isql and then do CONNECT preprod or CONNECT localhost on the RH
box I get the 902 message.

On another note, I have apache running on the RH box which I can access fine
from the Win2K machine by typing preprod into a browser , so that suggests the
domains are set up right, but I am open to suggestions. I am considering
junking the redhat box to see what happens but that would be bit of a pain.

Cheers,
Neil

Neil Weller

unread,
Jun 13, 2001, 3:45:14 PM6/13/01
to Neil Weller
Just to correct a of typo there:

The hosts file on the RH box contains:

127.0.0.1 localhost.localdomain localhost
192.168.241.1 preprod.timewave.co.uk preprod

plus a couple of other machine details.

Cheers,
Neil

Neil Weller

unread,
Jun 13, 2001, 3:46:11 PM6/13/01
to Neil Weller
Just to correct a of typo there:

The hosts file on the RH box contains:

127.0.0.1 localhost.localdomain localhost
192.168.241.1 preprod.timewave.co.uk preprod

plus a couple of other machine details.

Cheers,
Neil

Shawn

unread,
Jun 14, 2001, 12:22:04 PM6/14/01
to
Ne...@timewave.co.uk (Neil Weller) wrote in
<3B27C238...@timewave.co.uk>:

>Then, if I try isql and then do CONNECT preprod or CONNECT localhost on
>the RH box I get the 902 message.

Unfortunately, I'm not as familiar with accessing an IB server from the
local Linux box. I do all my access from remote machines (mostly my Win2k
desktop at work).

I had another thought last night; Have you confirmed that the IB server is
running? I've made that mistake before ;-)

Neil Weller

unread,
Jun 14, 2001, 2:17:06 PM6/14/01
to Shawn
Thats a good point, I've assumed because ISQL is running then the server
is....

Better go check.

Cheers,
Neil

Pin Lu

unread,
Jun 16, 2001, 1:31:53 PM6/16/01
to
you need to create a symbolic link to libncureses.so.5 as
libncureses.so.4.

make sure your glibc is up to date.

run /opt/interbase/bin/ibguard &

I have it running in my redhat box. It took me a while to figure out
that symbolic link thing. It was not documented I guess.
Email me if you have further questions. i don't check newsgroup very
often.
p...@stredo.com

On Tue, 12 Jun 2001 19:46:54 +0100, Neil Weller <Ne...@timewave.co.uk>
wrote:

Peter Harrison

unread,
Jun 28, 2001, 4:50:28 PM6/28/01
to
Try using Telnet to connect to port 3050 on the RH box. This will
prove the connection is good. I don't understand why the Win2K box is
saying 'unable to connect to localhost' - since you should be trying
to connect to the RH box?

What tool are you using on Linux to connect to Interbase?


On Tue, 12 Jun 2001 19:46:54 +0100, Neil Weller <Ne...@timewave.co.uk>
wrote:

>I have posted this in another message but I guess I wasn't clear enough

0 new messages