You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Tony Poppleton <to...@wanadoo.fr> on 2009/12/14 23:31:36 UTC
Using multiple IP addresses
Hi,
I have two IP addresses on my computer, and would like to send out requests on both using a single Java application and HttpClient. Is this possible? I.e. one request sent out from the first IP, and the next request sent out from the second IP.
Thanks,
Tony
Re: Using multiple IP addresses
Posted by Oleg Kalnichevski <ol...@apache.org>.
Tony Poppleton wrote:
> Hi,
>
> Just to clarify, at what level should I be setting the 'http.route.local-address' parameter?
>
> Would you advise using a separate HttpClient for this, or a separate ConnectionManager, or can it simply be set on each request? I am looking for the most efficient solution, not necessarily the cleanest/easiest.
>
This parameter can be set either at the client level or at the request
level. The effect will be the same.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: Using multiple IP addresses
Posted by Tony Poppleton <to...@wanadoo.fr>.
Hi,
Just to clarify, at what level should I be setting the 'http.route.local-address' parameter?
Would you advise using a separate HttpClient for this, or a separate ConnectionManager, or can it simply be set on each request? I am looking for the most efficient solution, not necessarily the cleanest/easiest.
Thanks,
Tony
> Message du 17/12/09 02:29
> De : "Tony Poppleton"
> A : "HttpClient User Discussion"
> Copie à :
> Objet : Re: Using multiple IP addresses
>
>
> Thanks, that is much easier than expected!
> Tony
>
>
> > Message du 16/12/09 21:44
> > De : "Oleg Kalnichevski"
> > A : "HttpClient User Discussion"
> > Copie à :
> > Objet : Re: Using multiple IP addresses
> >
> >
> > Tony Poppleton wrote:
> > > Hi Christine,
> > >
> > > I am just looking for the simplest solution. Using one http client and one connection manager would be nice, although not necessary if that is overcomplicated.
> > >
> > > Thanks,
> > > Tony
> > >
> > >
> >
> > 'http.route.local-address' parameter is your friend.
> >
> > http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e473
> >
> > Oleg
> >
> > >
> > >> Message du 15/12/09 14:30
> > >> De : "Christine Karman"
> > >> A : "HttpClient User Discussion"
> > >> Copie à :
> > >> Objet : Re: Using multiple IP addresses
> > >>
> > >>
> > >> Tony Poppleton wrote:
> > >>> Hi,
> > >>>
> > >>> I have two IP addresses on my computer, and would like to send out requests on both using a single Java application and HttpClient. Is this possible? I.e. one request sent out from the first IP, and the next request sent out from the second IP.
> > >>>
> > >> Do you want one instance of HttpClient to do so, and one connectionManager?
> > >>
> > >> dagdag
> > >> Christine
> > >>> Thanks,
> > >>> Tony
> > >>>
> > >>
> > >> --
> > >> dagdag is just a two-character rotation of byebye.
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > >> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> > >>
> > >> ---------------------------------------------------------------------------------------
> > >> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> > >> Aucun virus connu a ce jour par nos services n'a ete detecte.
> > >>
> > >>
> > >>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> >
> > ---------------------------------------------------------------------------------------
> > Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> > Aucun virus connu a ce jour par nos services n'a ete detecte.
> >
> >
> >
>
> --------------------------------------------------------------------------------------- Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
>
Re: Using multiple IP addresses
Posted by Tony Poppleton <to...@wanadoo.fr>.
Thanks, that is much easier than expected!
Tony
> Message du 16/12/09 21:44
> De : "Oleg Kalnichevski"
> A : "HttpClient User Discussion"
> Copie à :
> Objet : Re: Using multiple IP addresses
>
>
> Tony Poppleton wrote:
> > Hi Christine,
> >
> > I am just looking for the simplest solution. Using one http client and one connection manager would be nice, although not necessary if that is overcomplicated.
> >
> > Thanks,
> > Tony
> >
> >
>
> 'http.route.local-address' parameter is your friend.
>
> http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e473
>
> Oleg
>
> >
> >> Message du 15/12/09 14:30
> >> De : "Christine Karman"
> >> A : "HttpClient User Discussion"
> >> Copie à :
> >> Objet : Re: Using multiple IP addresses
> >>
> >>
> >> Tony Poppleton wrote:
> >>> Hi,
> >>>
> >>> I have two IP addresses on my computer, and would like to send out requests on both using a single Java application and HttpClient. Is this possible? I.e. one request sent out from the first IP, and the next request sent out from the second IP.
> >>>
> >> Do you want one instance of HttpClient to do so, and one connectionManager?
> >>
> >> dagdag
> >> Christine
> >>> Thanks,
> >>> Tony
> >>>
> >>
> >> --
> >> dagdag is just a two-character rotation of byebye.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> >> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> >>
> >> ---------------------------------------------------------------------------------------
> >> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> >> Aucun virus connu a ce jour par nos services n'a ete detecte.
> >>
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>
Re: Using multiple IP addresses
Posted by Oleg Kalnichevski <ol...@apache.org>.
Tony Poppleton wrote:
> Hi Christine,
>
> I am just looking for the simplest solution. Using one http client and one connection manager would be nice, although not necessary if that is overcomplicated.
>
> Thanks,
> Tony
>
>
'http.route.local-address' parameter is your friend.
http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e473
Oleg
>
>> Message du 15/12/09 14:30
>> De : "Christine Karman"
>> A : "HttpClient User Discussion"
>> Copie à :
>> Objet : Re: Using multiple IP addresses
>>
>>
>> Tony Poppleton wrote:
>>> Hi,
>>>
>>> I have two IP addresses on my computer, and would like to send out requests on both using a single Java application and HttpClient. Is this possible? I.e. one request sent out from the first IP, and the next request sent out from the second IP.
>>>
>> Do you want one instance of HttpClient to do so, and one connectionManager?
>>
>> dagdag
>> Christine
>>> Thanks,
>>> Tony
>>>
>>
>> --
>> dagdag is just a two-character rotation of byebye.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>> ---------------------------------------------------------------------------------------
>> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
>> Aucun virus connu a ce jour par nos services n'a ete detecte.
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: Using multiple IP addresses
Posted by Tony Poppleton <to...@wanadoo.fr>.
Hi Christine,
I am just looking for the simplest solution. Using one http client and one connection manager would be nice, although not necessary if that is overcomplicated.
Thanks,
Tony
> Message du 15/12/09 14:30
> De : "Christine Karman"
> A : "HttpClient User Discussion"
> Copie à :
> Objet : Re: Using multiple IP addresses
>
>
> Tony Poppleton wrote:
> > Hi,
> >
> > I have two IP addresses on my computer, and would like to send out requests on both using a single Java application and HttpClient. Is this possible? I.e. one request sent out from the first IP, and the next request sent out from the second IP.
> >
> Do you want one instance of HttpClient to do so, and one connectionManager?
>
> dagdag
> Christine
> > Thanks,
> > Tony
> >
>
>
> --
> dagdag is just a two-character rotation of byebye.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>
Re: Using multiple IP addresses
Posted by Christine Karman <ch...@christine.nl>.
Tony Poppleton wrote:
> Hi,
>
> I have two IP addresses on my computer, and would like to send out requests on both using a single Java application and HttpClient. Is this possible? I.e. one request sent out from the first IP, and the next request sent out from the second IP.
>
Do you want one instance of HttpClient to do so, and one connectionManager?
dagdag
Christine
> Thanks,
> Tony
>
--
dagdag is just a two-character rotation of byebye.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org