Subject Re: Can't open connection
Author local_user5
> > I'm trying to connect to FireBird 1.5 from a java program.
> > Both the program and server are on the same computer.
> > When computer is connected to Internet all works good,
> > but when it's not connected, strange error appears:
> > ----------------
> > Can't open connection: org.firebirdsql.jdbc.FBSQLException:
> > Exception.
> > Unable to complete network request to host "localhost".
> > Reason: Unable to complete network request to host "localhost".
> > ----------------
> > It seems that to resolve localhost or even driver needs
> > a DNS server. But when computer is disconnected "ping localhost"
> > works good.
> > I tried 1.0.1 and 1.5 drivers - nothing happens.
> Do you actually have a HOSTS file with a localhost entry?
> The first stage of DNS lookup is to check the HOSTS file from which
> names and IP addresses are checked first after that it goes for a
> server.

First of all: Thank you for the answer!

Yes, of course HOSTS file contains this string.
This was a first thing which I checked.
But it also not work when address is specified !

> Next question would be - what are you actually using as a connect

Connection string is
and all works ONLY when an Internet connection is established!