I have a kind of Http-Gateway application that acts as an http client to servers outside our local network.
There will be a network configuration update, and I will have problems because:
- there are several network cards on the client machine
- firewall / nat rules use hard IP addresses
If I could programmatically force the HttpUrlConnection object to use a specific IP address, I would be fine. But I am afraid that this is impossible.
I'm right? If not, which version of the JRE supports it?
Other possible solutions, preferably those not related to rewriting everything from scratch?
The simpler the better: I know there is Apache HttpClient, or I can use Sockets ...
thanks
AndreaG
source share