T
timwhunt
Hi,
We are looking for a way to control the IP address we use for outgoing
HTTP requests so that we can choose between two IP addresses we will
have on a linux server. We have a Linux server running Java/Tomcat
which is making HTTP GET requests to Web servers. We want to be able
to use one IP address when making requests to one Web server and use a
different IP address when making requests to another server. The
actual Java method we are using to get the page is
connection.getInputStream(), and we get a connection with
url.openConnection();
Is it possible to control which of the server's IP addresses is used
for each request, and if so, how? Is there some way we can set up the
Linux server or Tomcat to make it work?
BTW, I believe it is possible to have two IP addresses on a linux
server, but I haven't looked into what's involved. Feel free to
comment on this if relevant.
Thanks!
We are looking for a way to control the IP address we use for outgoing
HTTP requests so that we can choose between two IP addresses we will
have on a linux server. We have a Linux server running Java/Tomcat
which is making HTTP GET requests to Web servers. We want to be able
to use one IP address when making requests to one Web server and use a
different IP address when making requests to another server. The
actual Java method we are using to get the page is
connection.getInputStream(), and we get a connection with
url.openConnection();
Is it possible to control which of the server's IP addresses is used
for each request, and if so, how? Is there some way we can set up the
Linux server or Tomcat to make it work?
BTW, I believe it is possible to have two IP addresses on a linux
server, but I haven't looked into what's involved. Feel free to
comment on this if relevant.
Thanks!