Replace $REMOTE_HOST with $_SERVER["REMOTE_ADDR"]

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>