Subject | Re: Specifying a source ip address in a connect string? |
---|---|
Author | kshenes |
Post date | 2004-02-05T15:19:42Z |
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:
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:a
> >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
> >specific source address and not IN_ADDR_ANY. Is there anyway to dois
> >this?
>
> What do you mean by "specific source address"?
>
> The client can connect to the host machine via TCP/IP if the host
> listening, otherwise not. Your client can connect using the IPaddress of
> the host or the host name, whether the server is on Linux ornetwork
> 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
> device using the RemoteBindAddress parameter.
>
> /hb