Dear all,

 

After a successful http connection, I want to get the local address with the 
target connection. 

But I don’t know how to get it. Any suggestion?

 

I know there is HttpRoute will be determined when a HttpClient.execute(), and 
HttpRoute.getLocalAddress() may be useful.

But there is no way to get it (HttpRoute) through the public interface 
according to my experience and my survey of the API javadoc.

 

Because I have two network cards and their subnets are different.

One is 192.168.10.x, another is 192.168.20.x

 

I want to automatically know if I connect to 192.168.30.x, which network card 
IP will be used?

I think I may get the local address after a successful connection. Am I right?

 

I use HttpClient 4.0.

 

Thanks in advance.

 

 

Sincerely,

Micky

Reply via email to