code: def first_ipv4(self) -> Optional[AddressInfo]:
          '''The first IPv4 address.'''
          for info in self._address_infos:
              if info.family == socket.AF_INET:
                  return inff first_ipv4(self) -> Optional[AddressInfo]:
          '''The first IPv4 address.'''
          for info in self._address_infos:
              if info.family == socket.AF_INET:
                  return info
docs: The first IPv4 address.