commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Erskine <>
Subject Re: [HttpClient] Binding to a particular interface/IP?
Date Tue, 13 May 2003 11:38:02 GMT

 > This is, I think, not possible. A client does not "bind" to an IP or
 > interface. The IP routing subsystem of the OS makes that decision
 > based upon target IP address and the routing tables.

This is not a routing issue - the two interfaces are on the same 
network.  They are actually the same card using IP aliasing to have two 

What I'm looking for is an equivalent of the following method in

public Socket(InetAddress address,
               int port,
               InetAddress localAddr,
               int localPort)

The remote server will only accept requests from one of the addresses.


|   Erik Erskine                                                     |
|   Sundayta Ltd                                                     |

View raw message