daemon ip related code