How can I identify the server IP address in PHP?
I came to this page looking for a way of getting my own ip address not the one of the remote machine connecting to me.
This will not work for a windows machine.
But in case someone searches for what I was looking for:
#! /usr/bin/php
(Shamelessly adapted from How to I get the primary IP address of the local machine on Linux and OS X?)