You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Paul Fremantle <pz...@gmail.com> on 2008/09/18 19:04:13 UTC

Bind an outgoing NHTTP connection to a specific interface?

Oleg

If you have a system that has several network interfaces, is there a
way to bind an outgoing HTTP connection to a specific interface?

Thanks
Paul

-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Bind an outgoing NHTTP connection to a specific interface?

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Thu, 2008-09-18 at 18:04 +0100, Paul Fremantle wrote:
> Oleg
> 
> If you have a system that has several network interfaces, is there a
> way to bind an outgoing HTTP connection to a specific interface?
> 

Hi Paul

One can bind an outgoing HTTP connection to an arbitrary local address
by as giving a non null SocketAddress as a second parameter to the
ConnectingIOReactor#connect() method

http://hc.apache.org/httpcomponents-core/httpcore-nio/apidocs/org/apache/http/nio/reactor/ConnectingIOReactor.html

Hope this helps

Oleg


> Thanks
> Paul
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org