Subject Re: INET/INET_connect: gethostbyname failed, error code = 2
Author Adam
--- In, "k_smith_000"
<k_smith_000@y...> wrote:
> Hello guys!
> Recently I'm receiving following error messages in my application:
> Unable to complete network request to host "C"

I suspect your connection string looks like

c:\Program files\Firebird\Firebird_1_5\security.fdb

And it is assuming the host:path syntax, assuming c is the host which
is a bit odd.

Try changing it to

localhost:c:\Program files\Firebird\Firebird_1_5\security.fdb


> In firebird.log file I've observed that following error message are
> connected with the one stated above:
> INET/INET_connect: gethostbyname failed, error code = 2
> Suprisingly, I'm getting those messages only when client is connecting
> from computer with Win2000/Win2003 installed. When I switch to WinXP,
> everything works like a dream!
> When I've defined host C to point to address, error message
> has changed:
> I\O error for file \Program files\Firebird\Firebird_1_5\security.fdb
> To be honest, I'm connecting to totally different database;)
> On Firebird site I've found registered bug #571026, in which it is
> stated that "gethostbyname was not working properly". I don't know if
> it's connected to my problem...
> I'm using Firebird 1.5.2 Classic server on linux.
> Any help would be appreciated!
> Kindly regards,
> Kevin Smith