Return default ip address for command line invokation

I ran into the warning `Undefined index: REMOTE_ADDR in Input.php` when I invoked a controller's method from the command line, e.g. `php index.php mycontroller/myfunction`

My proposed solution simply returns the default localhost ip address `127.0.0.1` when the php process is cli.