HomeKit connection error

Hello.

I have tried to add homekit integration and I see RQ code, but when I scan it on my iPhone it thinking for a minute and said it can’t connect.

The questions

  1. where are settings for the ports which that HomeKit integration use?
  2. How to change them?
  3. How to test if those ports work fine?
  4. How that adding to HomeKit on iPhone working in general? Is it try connect from internet to my rasberyPi on some port?

Duke

try to add it by the code that appear in the top of the barcode