An IP Cam must be connected to a network, via WiFi or via Ethernet to the router. If the connection is done via direct Ethernet, there won't be any router, so the IPs need to be manually configured to work in the same network.
In order to achieve this, we can fix the IP of the camera, and set an static IP on the client.
The IP of the camera can be set in the camera settings (e.g. web interface).
The static IP for the raspberry can be set like so:
nano /etc/dhcpcd.conf
# uncomment if the example is set interface eth0 static ip_address=192.168.1.10/24 # (for IP 192.168.1.10) static routers=192.168.1.1 static_domain_name_servers=whateva
Not sure if camera can be configured connecting it to the router and accessing the web UI directly
| IP | |
| IR cam | 192.168.1.120 |
| Non IR cam | 192.168.1.121 |
In order to test this, the best is to use VLC –> Media –> Open Network Stream…
The URL to access to both camera's RTSP is:
rtsp://192.168.1.120/11