  We consider groups of the nilpotency class $2$ of order $p^4$ which are the
additive groups of local nearrings. It was shown that, for odd p, out of 6 of
such groups 4 of them are the additive groups of local nearrings. Some examples
of such nearrings are explicitly constructed.
