I created a function that will determine the
hostname via a BSD socket function. There were
a few options but this one seemed to fit in with our code best
I commented it all out so you can see where it all is.