Auto detection ip