Dynamic outgoing IP?
Posted: Mon Sep 12, 2005 11:19 pm
Hi,
I'd like to know how to dynamically change the outgoing IP of a script connecting to external servers. Below is the scenario:
I have a script in server ABC with main IP address 12.12.12.12. This server also has other IPs mapped to it, 23.23.23.23 and 34.34.34.34. This script will access say a web script on server DEF. Now the web script on DEF will see my connecting script as originating from IP 12.12.12.12.
How do I dynamically configure my script so that when it accesses the web script on DEF, that remote script sees my script's originating IP as 23.23.23.23 or 34.34.34.34? I only know of one way, which is to actually alter the server's main IP address and restart the system, but that is not dynamic at all, and all scripts would then end up using that one particular IP again.
Please advise, thanks.
I'd like to know how to dynamically change the outgoing IP of a script connecting to external servers. Below is the scenario:
I have a script in server ABC with main IP address 12.12.12.12. This server also has other IPs mapped to it, 23.23.23.23 and 34.34.34.34. This script will access say a web script on server DEF. Now the web script on DEF will see my connecting script as originating from IP 12.12.12.12.
How do I dynamically configure my script so that when it accesses the web script on DEF, that remote script sees my script's originating IP as 23.23.23.23 or 34.34.34.34? I only know of one way, which is to actually alter the server's main IP address and restart the system, but that is not dynamic at all, and all scripts would then end up using that one particular IP again.
Please advise, thanks.