Subject Re: [firebird-php] How can I connect to a Firebird server on differnet port then 3050?
Author Lester Caine
nicky6797 wrote:
> Hi, all. This question may seem trivial to some of you.
>
> How can I connect to a Firebird server which listens on a different
> port than the default one 3050?

I suspect that we are not at the 'php' stage at all here. It SOUNDS as if you
have a Firebird server configured for 3050. What have you changed to set the
server up for 34534?
RemoteServiceName = gds_db will be used first, so if that was present in the
services file, 3050 will be used.
RemoteServicePort = 34534 is only used if there is no gds_db entry in the
services file.

> I tried everything. I'm customed to connect to such a server using
> the database string for example: "127.0.0.1/34534:c:\mybase.fdb"

Have you tested this using the notes on the Firebird Quickstart quide
http://www.firebirdsql.org/pdfmanual/Firebird-1.5-QuickStart.pdf ( Still a
good guide even for FB2 )

> "Warning: ibase_connect(): Unable to complete network request to host
> "127.0.0.1". Failed to locate host machine. Undefined service 34534/tcp."

If you actually have a network connection and Firebird is running, this should
give an 'actively refused' message - 'Failed to locate' may actually mean that
you do not have local loopback service available on the windows machine. And a
ping 127.0.0.1 would confirm that.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird - http://www.firebirdsql.org/index.php