Colt
Colt

Reputation: 144

Firebird: Unable to complete network request to host

I'm trying to connect to a remote Firebird database "test" (alias already added). It is not an embedded server, and is installed on VM with IP 192.168.1.147.

Here is my connection string:

User=sysdba;Password=masterkey;Database=test;DataSource=192.168.1.147

However I got an error:

FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Unable to complete network request to host "192.168.1.147". ---> Unable to complete network request to host "192.168.1.147".

I've done some research on that but haven't got a clue yet. Some help needed. Thanks


My IP address is 192.168.2.108, and I can ping that server IP successfully

Upvotes: 9

Views: 94874

Answers (4)

Mark Rotteveel
Mark Rotteveel

Reputation: 108941

Make sure that

  1. Firebird is running
  2. Firebird is listening on port 3050 on the specified IP (or on 0.0.0.0)
  3. Your firewall allows access to port 3050
  4. You're using the correct host name

Upvotes: 15

Sam P. Nelson
Sam P. Nelson

Reputation: 1

Ok. I think your connection to firebird is faililing because the firebird client looks up the network service file by name and does not find gds_db in the services file. If your connection string refers to the host by using IP, the Client might fail to identify it because it gethostbyname() and not by IP Manually include this in the file and you should be fine. C:\windows\system32\drivers\etc\services

Upvotes: 0

Michael Kazarian
Michael Kazarian

Reputation: 4462

For Linux, the Firebird port is closed by default. You need to modify RemoteBindAddress in /etc/firebird/2.5/firebird.conf from

RemoteBindAddress = localhost

to

RemoteBindAddress =

and restart service.

Upvotes: 7

mochja
mochja

Reputation: 33

Make sure you have excluded tcp port 3050 in VMs' firewall.

Upvotes: 2

Related Questions