Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] client and local IP address

Hi,

On Tue, Sep 8, 2015 at 4:40 PM, Bruno Babic <bbabic@xxxxxxxxxxxx> wrote:
> Hi there!
>
> (I sure hope that somebody reads this and answers my question)
>
> I'm using HttpClient to send HTTP requests and it pretty much works as
> expected... but I have no idea how to specify which local IP address client
> should use when sending those requests.

httpClient.setBindAddress(new InetSocketAddress(...));

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top