Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group