Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've a cpp application that used to read the data from the firebird SQL server. when i changed port from 3050 to 3053 it shows error like

DB Error : 0 : Unable to complete network request to host "192.168.1.47".
Failed to establish a connection.
unknown Win32 error 10060
Invalid connection string attribute
conf file is changed like

# Type: string, integer
#
RemoteServiceName = gds_db
RemoteServicePort = 3053

is there is any modification is required to solve this? application can read the data if the port is 3050.

What I have tried:

Fb connection string is

Driver=Firebird/InterBase(r) driver;DBNAME=192.168.1.47:CWNPFB;PORT=3053;UID=SYSDBA;PWD=********
Posted
Updated 31-Jan-17 1:58am
Comments
Michael_Davies 23-Jan-17 2:38am    
Have you checked firewall rules on FB machine and the pc running your code?

1 solution

The problem is with your connection string:

Remove PORT=3053 from the connection string (this causes the "Invalid connection string attribute" message)
C++
Modify DBNAME=192.168.1.47:CWNPFB to DBNAME=192.168.1.47/3053:CWNPFB 
(to specify the right port)
You might also want to comment out (or remove) the line RemoteServiceName = gds_db, because you are now instructing Firebird to listen on
C++
gds_db (== port 3050), and on port 3053
. I believe it usually listens on the last one configured in the config file, but I'm not sure that is always the case.

courtesy : Mark Rotteveel
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900