Added three utility methods using 'socket' module to acquire and test IP address/hostname