fake REMOTE_ADDR in CLI mode, to make it possible to test by unit test