Subject Re: Specifying a source ip address in a connect string?
Author kshenes
Let say I have a client running on machine (source address)
169.254.64.1 and it wants to connect to (dest address)169.254.76.3. I
need to tell firebird to connect to 169.254.76.3 but use 169.254.64.1
as the src address in the "bind" call, NOT use INADDR_ANY. When
connect is called the socket fd is bound to the "specific source
address" of 169.254.64.1 allowing the NAT rules to get the routes
from the correct routeing table.

Thanks
Kevin


--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
> At 09:25 PM 4/02/2004 +0000, you wrote:
> >Is there anyway to have firebird's client library runnin gon linux
> >connect to a remote database with a specific source address? If I
> >have specific routes that are not located in the main route table,
> >but a relocated in a secondary route table. firebird clients cannot
> >utilize these routes unless the socket is connected or bound using
a
> >specific source address and not IN_ADDR_ANY. Is there anyway to do
> >this?
>
> What do you mean by "specific source address"?
>
> The client can connect to the host machine via TCP/IP if the host
is
> listening, otherwise not. Your client can connect using the IP
address of
> the host or the host name, whether the server is on Linux or
> Windows. There is a difference between the file paths, of course.
>
> Linux server:
> 123.456.789.1:/path/to/the/database
> or
> bigmomma:/path/to/the/database
>
> Windoze server:
> 123.456.789.1:D:\path\to\the\database
> or
> bigmomma:D:\path\to\the\database
>
> In Firebird 1.5 you can also bind the host address to a particular
network
> device using the RemoteBindAddress parameter.
>
> /hb