auto detect host IP address and use this instead of localhost