Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 851ECB5DBF0 for ; Fri, 8 Jul 2011 12:09:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 58797-07 for ; Fri, 8 Jul 2011 15:09:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id BA9E6B5DBD2 for ; Fri, 8 Jul 2011 12:09:36 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p68F9Zcu035080 for ; Fri, 8 Jul 2011 15:09:35 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p68F9ZrP035079; Fri, 8 Jul 2011 15:09:35 GMT (envelope-from www) Date: Fri, 8 Jul 2011 15:09:35 GMT Message-Id: <201107081509.p68F9ZrP035079@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6102: JDBC BIND Source IP Address From: "Angel Dabov" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201107/71 X-Sequence-Number: 30683 The following bug has been logged online: Bug reference: 6102 Logged by: Angel Dabov Email address: onzi@ustrem.org PostgreSQL version: JDBC 8.3 Operating system: Windows Description: JDBC BIND Source IP Address Details: Hi, We have Tomcat Windows server with five applications which listen on different IP addresses. Every application connects Postgres DB on different server. These IP addresses are aliases on one NIC in same subnet. The problem: Every connection to the DB from JDBC driver bind different IP for source address. We have firewall before DBs and need to use specific source ip address for every application. Is there any chance to fix in PGstream.java socket(host, port) with socket(host, port, sourceaddress, null) and give us prop to set sourceaddress? Thank You, Angel