Hello - thanks for asking your question.
Without seeing the lesion and examining you myself, I cannot diagnose you over the internet.
However, it appears that the ingrown hair may have led to a skin infection - which is not uncommon. The lump may be an abscess, which would need to be drained if this is the case.
If there is a mass in your scrotum, then a visit to your personal physician would be in order. There are many causes for scrotal masses - cysts, varicocele, epididymitis, cancer etc. Your physician may further evaluate it with a scrotal ultrasound.
If the cause is an abscess, it would need to be incised and drained by your personal physician. Antibiotics may be considered to treat any infection (i.e. skin infection or epididymitis) as well.
I strongly suggest followup with your personal physician.
I stress that this answer is not intended as and does not substitute for medical advice - please see your personal physician for further evaluation of your individual case.
Thanks,
Kevin, M.D.