Re: Defining local IP address when opening connections to database

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Michael Bauland <Michael(dot)Bauland(at)knipp(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Defining local IP address when opening connections to database
Date: 2012-03-07 16:40:44
Message-ID: CADK3HHJMYT7NWS=5p3n=tjB_E9Nxqgzrp7W_yfJdhkKcqPPX6w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Michael,

The URL can take an ip address ie jdbc:postgresql://127.0.0.1/dbname

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On Wed, Mar 7, 2012 at 11:20 AM, Michael Bauland
<Michael(dot)Bauland(at)knipp(dot)de> wrote:
> Hi,
>
> I've got a problem when using the PostgreSQL JDBC driver to open a
> connection to a database (not using SSL). The server on which I'm using
> the driver has several IPs configured, but I would like to use a certain
> IP (since only for that IP the firewalls have been set-up to allow the
> connection to the database). Looking at the documentation I couldn't
> find a way to define this local IP.
> Have I missed something? If not, would it be possible to add this
> feature of defining the local IP when setting up a connection?
>
> Cheers,
>
> Michael
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kevin Grittner 2012-03-07 16:41:37 Re: Defining local IP address when opening connections to database
Previous Message Michael Bauland 2012-03-07 16:20:08 Defining local IP address when opening connections to database