Firebird: Unable to complete network request to ho

2019-01-15 19:17发布

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

3条回答
走好不送
2楼-- · 2019-01-15 19:40

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.

查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-01-15 19:51

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

查看更多
叼着烟拽天下
4楼-- · 2019-01-15 19:59

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
查看更多
登录 后发表回答