on Sun, 30 Oct 2005 16:37:05 -0500 Tony Spencer <[EMAIL PROTECTED]> wrote:

> Does anyone know if there is anyway to specify which network adapter
> HttpClient should use?
> 
> In other words, if I have two network cards in a server and both are
> actively connected to a network could I choose which one I want to
> use?  (one of NetworkInterface.getNetworkInterfaces())

I think you should use
org.apache.commons.httpclient.HostConfiguration.setLocalAddress(InetAddress
localAddress)
method and pass the ip of your net iface.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to