Subject Re: [firebird-support] Specifying port number in the connection string for NetBeui
Author Helen Borrie
At 04:59 AM 16/05/2006, you wrote:
>I have Firebird 1.5.2 installed on port 3051 on a Windows XP box
>named SERVER1.
>
>My connection string to access the database on that server using
>TCP/IP is:
>
>SERVER1/3051:C:\Data\Mydatabase.fdb
>
>Everything is working fine when accessing the database using TCP/IP.
>
>
>What would be the connection string to access the database using
>NetBeui ?
>
>I have tried
>\\SERVER1/3051\C:\Data\Mydatabase.fdb

No

>as well as
>\\SERVER1@3051\C:\Data\Mydatabase.fdb
>without any success.

Yes.

But WNET isn't TCP/IP! To use this syntax you will need an entry in
the host machine's ..\system32\drivers\etc\services file, so that
Windows knows how to resolve the connection, e.g.

gds_db 3051/tcp #Firebird server
override port

Then your syntax will work, because WNET will be able to resolve what
it is being asked to connect to.

If you don't want to override the gds_db port assignment, you can add
a new firebird port assignment without touching gds_db:

fb_db 3051/tcp #Firebird server
override port

Then, just connect the Firebird clients like this:

\\SERVER1@fb_db\C:\Data\Mydatabase.fdb

./heLen