Detecting & logging.info of IPv4 and IPv6 address of the system