auto detect host ip address instead of localhost