Unable to connect Aqara P2 sensor through Matter

Hi all, I’m trying to connect an Aqara P2 sensor using matter and thread but I’m having some problems. When I try to connect the device through the companion app, it crashes on the network connection check and says me to be sure that the phone is connected to the wifi (spoiler: it is).

before giving me this error however it passes the part where it says to connect to the device and generate matter credentials.

I report my configuration to give more details:

version: '3.9'

services:
  home-assistant:
    container_name: home-assistant
    image: ghcr.io/home-assistant/home-assistant:latest
    volumes:
      - /home/lab/homeassistant:/config
      - /run/dbus:/run/dbus:ro
    devices:
      - /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20221130193241-if00:/dev/ttyACM0
    environment:
      - TZ=Europe/Rome
    network_mode: host
    restart: always

  matter:
    container_name: matter
    image: ghcr.io/home-assistant-libs/python-matter-server:stable
    restart: unless-stopped
    network_mode: host
    security_opt:
      - apparmor=unconfined
    volumes:
      - /home/lab/matter:/data
      - /run/dbus:/run/dbus:rost

  multipan:
    container_name: multipan
    image: b2un0/silabs-multipan-docker:2.4.4
    cap_add:
      - SYS_ADMIN
      - NET_ADMIN
    restart: always
    privileged: true
    network_mode: host
    devices:
      - /dev/ttyACM0
    volumes:
      - ./data/:/data
    environment:
      # OCPD environment variables
      DEVICE: "/dev/ttyACM0"
      BAUDRATE: "460800"
      CPCD_TRACE: "false"
      FLOW_CONTROL: "false"
      NETWORK_DEVICES: 0
      # OTBR-AGENT environment variables
      OTBR_ENABLE: 1
      BACKBONE_IF: "wlp1s0"
      OTBR_LOG_LEVEL: "debug"
      OTB_FIREWALL: 1
      OTBR_REST_LISTEN_PORT: "8081"
      # OTBR-WEB environment variables
      OTBR_WEB_PORT: "8087"
      # SOCAT environment variables
      NETWORK_DEVICE: ""
      # ZIGBEED environment variables
      EZSP_LISTEN_PORT: "9999"
      # UNIVERSAL FLASHER variables
      AUTOFLASH_FIRMWARE: 0
      FIRMWARE: "86"

In Home Assistant I have set Matter(BETA), Thread and Open Thread Border Router.

I don’t know if I’m doing something wrong.
Every help is really appreciated.