if get sockname returns an error, then I don't do anything with that data and I just end up printing out the ip address as a null string-> this is one of the reasons to initialize the char array to \0's