CLI bugfix

Fixed notice when accessing via the CLI because of the undefined index
'REMOTE_ADDR'