01304 827609 info@use-ip.co.uk Find us

Connecting IP camera to Raspberry Pi directly through ethernet?

tetrus

New Member
Messages
1
Points
1
Hi. I need to connect my IP camera to RPI 4B via the Ethernet port, and still maintain WiFi access on the Pi. Tried the instructions from this tutorial:

https://www.rickmakes.com/monitoring-an ... -internet/

and I can ping the static IP assigned to the camera but I cant open it with VLC(omxplayer used in the tutorial seems deprecated), it just says ''Unable to connect'.

My camera's model is TRX-VR50.

I also followed the guidance given in this topic: viewtopic.php?t=326260&sid=c2430c05cb39 ... f2bbf80bf1,

the issue resolved there seems to be the same that I have now.

So I set up a DHCP server with dnsmasq which fixes my eth0 interface to 172.16.4.0 and any device that has my camera's MAC to have static IP of 172.16.4.0

I did this by amending the following files from the tutorial above as so:

/etc/dhcpcd.conf:

interface eth0
static ip_address=172.16.4.0

/etc/dnsmasq.conf:

interface=eth0
dhcp-range=172.16.4.1,172.16.4.55,255.255.255.0,24h
address=/#/172.16.4.0
dhcp-leasefile=/var/lib/misc/dnsmasq.leases
dhcp-host=*MAC address*,172.16.4.1

With these configurations, I can ping the camera at 172.16.4.1 and I get valid connection but when I tried vlc "rtsp://admin:admin@172.16.4.1:554/cam/realmonitor?channel=1&subtype=0" it says vlc cant connect. When I configured the camera to the router wirelessly via an app, I can view the camera's output with the same command but the IP changed to the dynamically allocated one by the router.

My network details listed from "ipconfig" from my windows PC on the same network:
IPv4 Address: 172.16.1.199
Default Gateway: 172.16.1.1

I also tried to fix the eth0 and camera's IP addresses to 172.16.0.0 and 172.16.0.1 respectively, but the result is the same : can ping the camera's IP but VLC throwing 'Unable to connect''.

Sorry if I'm taking the wrong approach altogether with this, I'm pretty new with setting up PoE cameras. Can anyone help me view the camera's output from direct Ethernet connection, and still maintain WiFi access for the Pi?

Thanks in advance
 
Back
Top