Add warning and coerce port into int