Why is my hostname set to a random number (228) in the bash prompt on OS X?
From the list of prompt strings (see PROMPTING in man bash):

\h     the hostname up to the first `.'


Usually, this gives a nice short hostname but in your case leads to the slightly confusing 228.