get host ip automatically