J
js
Hello,
I have the following problem:
On one of our servers runs a web application which connects through a
HttpUrlConnection to another server and sends requests. Our server has
two IP addresses. The other server only accepts requests from one of
those. But our server uses the other one as default...
The following options are not possible for different reasons:
- to write our own HttpUrlConnection class
- to change the default IP of our server
- to change the configuration of the other server
- to fiddle with the IP of outgoing packets via NAT or something
Does anyone know how to set the source IP of the request from Java?
Greetings and thanks in advance
Jan Strube
I have the following problem:
On one of our servers runs a web application which connects through a
HttpUrlConnection to another server and sends requests. Our server has
two IP addresses. The other server only accepts requests from one of
those. But our server uses the other one as default...
The following options are not possible for different reasons:
- to write our own HttpUrlConnection class
- to change the default IP of our server
- to change the configuration of the other server
- to fiddle with the IP of outgoing packets via NAT or something
Does anyone know how to set the source IP of the request from Java?
Greetings and thanks in advance
Jan Strube