While unit testing I found that providing a default IP address to Request::ip() returns NULL in a CLI environment.