indiefan / home_assistant_nanit

Docker container for mirroring nanit feed suitable for Home Assistant integration
61 stars 11 forks source link

failed to punch p2p #17

Open bwrsandman opened 2 months ago

bwrsandman commented 2 months ago

With a new Nanit pro. Tried the docker command mentioned in the readme. I get baby_uid and sensor stats:

13 Sep 24 11:01 UTC DBG Baby state updated baby_uid=xxx humidity=55.819 is_night=true temperature=27.711

However, I get no video output from the rtmp address and the log has a message about failed to punch p2p

13 Sep 24 11:01 UTC DBG Received message data="type:RESPONSE  response:{requestId:2  requestType:PUT_STREAMING  statusCode:500  statusMessage:\"failed to punch p2p\"}"
13 Sep 24 11:01 UTC WRN Failed to request local streaming, awaiting stream health check error="failed to punch p2p"
bwrsandman commented 2 months ago

This is probaby due to my firewall router. I use firewalla to block much of the network traffic from leaving my LAN. This doesn't prevent me from streaming from the app, but seems to prevent p2p punching.

Temporarily disabling my rules, allowed me to start streaming. I can then re-enable my rules. However, this seems to be required every time the container starts.

Is there a hostname I can whitelist to allow punching?