Use ip if available