The ulcers have to be seen for diagnosis. Best for you is to see a dermatologist or urologist. Get blood sugar checked. If you have something called phimosis - the foreskin is tight and doesn't retract easily - this may need treatment.