I have a RPi camera connected to RPi zero 2w on LAN and v4l2rtspserver setup. I am able to receive the video stream on "rtsp://192.168.1.44:8554/unicast", but can't get a connection on "rtsp://rpiz2w1:8554/unicast". I also tried "rtsp://rpiz2w1.local:8554/unicast" but that also doesn't work. Here, IP address is DHCP assigned by router and hostname is rpiz2w1. I am able to ping or ssh into the RPi using both ip address or hostname from my PC, but RTSP is not going through. Any idea how to resolve this? My usecase requires connecting to several RPi+camera nodes via their hostnames since IP addresses may change (say after reboots).
I have a RPi camera connected to RPi zero 2w on LAN and v4l2rtspserver setup. I am able to receive the video stream on "rtsp://192.168.1.44:8554/unicast", but can't get a connection on "rtsp://rpiz2w1:8554/unicast". I also tried "rtsp://rpiz2w1.local:8554/unicast" but that also doesn't work. Here, IP address is DHCP assigned by router and hostname is rpiz2w1. I am able to ping or ssh into the RPi using both ip address or hostname from my PC, but RTSP is not going through. Any idea how to resolve this? My usecase requires connecting to several RPi+camera nodes via their hostnames since IP addresses may change (say after reboots).