curl_setopt ($ch, CURLOPT_INTERFACE, $ipUsed);
If we do not use this command, can anyone tell me what would be the IP used by curl?
Usually I set this up as $_SERVER['SERVER_ADDR']
However, when I install my own server
$_SERVER['SERVER_ADDR'] is 127.0.0.1
Setting curl_setopt ($ch, CURLOPT_INTERFACE, '127.0.0.1'); will means that curl will stop working.
If I do not call the line, curl will work though.
So I wonder what's the default CURLOPT_INTERFACE that curl use if we do not use curl_setopt ($ch, CURLOPT_INTERFACE, $ipUsed);