Hi Im opening a socket with a shell script like so...
<?php
$fp = fsockopen("www.example.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.example.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
?>
Which the remote computer see's as my servers main IP. I have 4 IPs and need to open another connection to the same computer but using a different IP (the remote computer counts queries by originating IP)
How would I get my shell script to use one of my other IP's?
Would I create a new user and assign him to an IP? how would I do that.