Web Hosting Talk







View Full Version : Script using multiple IP


infamo
04-04-2006, 05:02 AM
I have a dedicated server with CentOS, WHM, cPanel and 30 IP
addresses. I wrote a PHP script that downloads multiple websites.
I need to make this script to do downloads each time from different
IP. As I've said before, I have 30 IPs with my server.
Here is an example:
My IP range is 68.15.21.120-150
I need to download 4 web sites: cnn.com, bbc.com, av.com, google.com
Script downloads cnn.com from 68.15.21.120
bbc.com from 68.15.21.121
av.com from 68.15.21.122
google.com from 68.15.21.123
How can I do that?
Thank you.

anjanesh
04-04-2006, 05:28 AM
Are you trying to connect via a Proxy ?

infamo
04-04-2006, 05:34 AM
Are you trying to connect via a Proxy ?

no proxy. i have 30 dedicated IPs with my server.

Slidey
04-04-2006, 06:09 AM
paste the script?

infamo
04-04-2006, 06:12 AM
How do I need to configure my server for that?
Do I need to setup an account thru WHM for each IP?

dspillettt
04-06-2006, 05:57 AM
You need to tell your code to bind to a specific address for the outgoing connections. How you do this depends on what functions you are using to make the connections, so we can't help you further without more details - perhaps a sample of code as suggested by "Slidey"?