set HOSTIP depending on platform