Firebird: Unable to complete network request to host

别说谁变了你拦得住时间么 提交于 2019-11-26 22:03:25

问题


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


回答1:


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



回答2:


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:


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



来源:https://stackoverflow.com/questions/22338165/firebird-unable-to-complete-network-request-to-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!