Changed back to gethostname() instead of ip addr