Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 2DE4719DE834 for ; Wed, 7 Mar 2012 12:21:22 -0400 (AST) Received: from clust3b-eth0-0.bbone.knipp.de ([195.253.6.85] helo=kmx10a.knipp.de) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S5Jc7-00025G-G8 for pgsql-jdbc@postgresql.org; Wed, 07 Mar 2012 16:21:21 +0000 Received: from localhost (localhost [127.0.0.1]) by kmx10a.knipp.de (Postfix) with ESMTP id B21984C for ; Wed, 7 Mar 2012 17:21:06 +0100 (MEZ) X-Knipp-VirusScanned: Yes Received: from kmx10a.knipp.de ([127.0.0.1]) by localhost (kmx10a.knipp.de [127.0.0.1]) (amavisd-new, port 10004) with ESMTP id 8AfMUUjXY9tr for ; Wed, 7 Mar 2012 17:21:01 +0100 (MEZ) Received: from hp9000.do.knipp.de (hp9000.do.knipp.de [195.253.2.54]) by kmx10a.knipp.de (Postfix) with ESMTP id 3EDF04B for ; Wed, 7 Mar 2012 17:21:01 +0100 (MEZ) Received: from [195.253.2.105] (thrawn.do.knipp.de [195.253.2.105]) by hp9000.do.knipp.de (@(#)Sendmail version 8.13.3 - Revision 1.000 - 1st August, 2006/8.13.3) with ESMTP id q27GL045026599 for ; Wed, 7 Mar 2012 17:21:01 +0100 (MEZ) Message-ID: <4F578AB8.2050002@knipp.de> Date: Wed, 07 Mar 2012 17:20:08 +0100 From: Michael Bauland User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Defining local IP address when opening connections to database X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/7 X-Sequence-Number: 22746 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