code: def _find_sock():
      
      if socket.has_ipv6:
          try:
              return socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
          except socket.gaierror:
              pass # Platform lied about IPv6 support
      return socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
docs: Create a UDP socket