Subject Re: [Firebird-Java] Can't open connection
Author Lester Caine
local_user5 wrote:

> 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: Resource
> 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 127.0.0.1 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 DNS
server.

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

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services