Fine-tune automatic setting of localhost