Add ip setting functionality.