Re: Defining local IP address when opening connections to database

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Michael Bauland" <Michael(dot)Bauland(at)knipp(dot)de>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Defining local IP address when opening connections to database
Date: 2012-03-07 16:41:37
Message-ID: 4F573B610200002500045F9F@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Michael Bauland <Michael(dot)Bauland(at)knipp(dot)de> wrote:

> 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?

You probably either need to read this:

http://www.postgresql.org/docs/current/interactive/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SETTINGS

or this:

http://jdbc.postgresql.org/documentation/head/connect.html

-Kevin

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Johnston 2012-03-07 16:49:41 Re: Defining local IP address when opening connections to database
Previous Message Dave Cramer 2012-03-07 16:40:44 Re: Defining local IP address when opening connections to database