Force Outgoing Traffic/Connections Through Specific Network Interface

Hi,

First I would like to say thanks to all on this forum, I have been reading issues on here as an unregistered user for some time now and suggestions have been made on other issues that have helped me, so many thanks to the great members of this forum.

I am using a script which downloads files from the Internet onto a server. My server has one main IP address and 3 additional IP addresses. I am wondering how can I tell the script to use a specific add-on IP address, rather than the primary?

If using CURL to grab files, such as in the case of a proxy script for web browsing, I have found this to work:

[php]$toSet[CURLOPT_INTERFACE] = ‘127.0.0.1’;[/php]

But the problem is that the script I am using does not use CURL it uses the GET method. Is there any way to tell it to use one of the additional IP addresses instead of the main IP?

Thanks in advance for any help anyone can provide.

Sponsor our Newsletter | Privacy Policy | Terms of Service