How can I get the server IP address using PHP from the CLI?
<p>The title pretty much sums it up:</p>

<p>How can I get the server IP address using PHP from the CLI?</p>

<p>Using PHP's CLI, $_SERVER does not contain the server's IP address, so the obvious solution is out of the question.</p>

<p>Thanks!</p>
