dannieboiz
Getting the hang of it
- May 13, 2015
- 496
- 72
I have a DS7108 that doesn't have the "Virtual Host" feature. Has anyone figured out how to get email alerts working on the camera w/o the virtual host?
So after it working flawlessly for the last year +, all of a sudden my cameras can no longer send emails. On testing it says "cannot connect to server". Nothing has changed, no firmware updates / network changes etc. I've checked all network settings / email addresses / passwords etc. I'm using Gmail for sending / receiving with a separate email address for every camera. Some were full, so I've emptied them out.
Has anyone else noticed this and any suggestions on how to solve it? Cameras are still working / Hikvision DDNS still working etc.
1x DS-2CD2332-I2 v5.2.5 Build 141201
6x DS-2CD2232-I5 v5.2.5 Build 141201
DS-7608NI-E2/8P v3.3.1 with virtual host enabled.
I'm able to access each camera from my LAN.
Thanks
https://www.ipcamtalk.com/showthread.php/10940-GMAIL-Failure-Anyone-ElseHas anyone else noticed this and any suggestions on how to solve it? Cameras are still working / Hikvision DDNS still working etc.
@okosub Alastair has given you the correct instructions so far and I was under the impression that you have implemented them. In any case here are the ideal configuration settings for everything (once more!!)
Camera settings when connected to the NVR PoE switch:
Camera IP: 192.168.254.2 (in this way th DHCP request of th camera is OFF)
Camera gateway: 192.168.254.1
Camera subnet mask: 255.255.255.0
NVR settings
NVR LAN IP: 192.168.1.XXX where XXX= any number which IS NOT included in the DHCP pool of the main LAN router (important). In this way the DHCP of the NVR is OFF. (Do not confuse this with the DHCP server settings at the main router)
NVR gateway: 192.168.1.1 (i.e. the main LAN router)
NVR subnet: 255.255.255.0
NVR gateway for the cameras: 192.168.254.1 (This is usually the default setting)
NVR Virtual Host enabled. With this setting you can access the camera web interface from the LAN with the address 192.168.1.XXX:65001
With the above settings so far the cameras can see the Internet at the LAN port of the main LAN router and both camera and NVR can send emails.
In order to be able to access the camera web interface from the LAN with the camera native IP (192.168.254.2) you must setup a static route at the main LAN router with the following settings: Network: 192.168.254.0, subnet:255.255.255.0, gateway:192.168.1.XXX
In order to access the NVR web interfaces from the WAN side of the main LAN router then you must port forward the ports of the NVR to the 192.168.1.XXX address. With this setting you will also be able to access the camera web interface from the WAN with the IP 192.168.1.XXX:65001
I hope the above are clear enough.
Hi everyone,
I am having the same issue as others here, NVR sends emails but cameras seem blocked to the web; they can not send emails or access time servers. I believe I have the correct settings but I my knowleage of networking is limited (I am a competent linux user however) and something must be incorrect so I have included screenshots from my NVR, camera and routerhere: http://imgur.com/a/oLOxp
NVR: DS-7604NI-E1 / 4P, firmware V3.4.80 build 160718
Cameras: 3x DS-2CD3345-I, firmware V5.3.9 build 160612
Router with Gargoyle version 1.9.1 at 192.168.1.1
Steps I have taken which summarizes my screenshots at :
NVR: 192.168.1.101 / 192.168.254.1
Enabled Virtual host
NVR network settings:
NIC Type AutoGargoyle Router 192.168.1.1
DHCP Yes
IPv4 Address 192.168.1.101
IPv4 Subnet Mask 255.255.255.0
IPv4 Default Gateway 192.168.1.1
....
DNS Server
Auto DNS Yes
Preferred DNS Server 192.168.1.1
Alternate DNS Server
Added Static routeCamera 192.168.1.101:65003 / 192.168.254.4
Destination 192.168.254.0/255.255.255.0
Interface lan (maybe I need to add a WAN setting? But I don't want to expose some security risk to the NVR)
Gateway 192.168.1.101
Camera network settings
NIC Type Auto
DHCP No
IPv4 Address 192.168.254.4
IPv4 Subnet Mask 255.255.255.0
IPv4 Default Gateway 192.168.1.1
....
DNS Server
Preferred DNS Server 192.168.1.1
Alternate DNS Server
One extra annoyance, I have SSH enabled on my camera at 192.168.254.4 but cannot ssh or telnet to it in Windows with Putty.
Any assistance will be greatly appreciated.
Spot on.Your camera gateway is wrong. It should be 192.168.254.1.
Just one point though - if the PoE-connected camera channel on the NVR is set to Plug & Play the NVR will at some point revert the default gateway back to the LAN default gateway.
To inhibit this, the channel should be set to manual.
Your camera gateway is wrong. It should be 192.168.254.1. The camera is routed First through the NVR Internal PoE switch which has an IP of 192.168.254.1.
Then the NVR routes all traffic to the Garcoyle LAN router at 192.168.1.1.
Also put as secondary DNS everywhere the google DNS 8.8.8.8. It helps sometimes.
Read again my instructions that you quoted and you will see your mistake. I hope I am correct and helpfull.
Just one point though - if the PoE-connected camera channel on the NVR is set to Plug & Play the NVR will at some point revert the default gateway back to the LAN default gateway.
To inhibit this, the channel should be set to manual.
Hello Alastair. Now you confused me as well with the above. Are you referring to the configuration of the channel at the NVR camera menu? This menu is not accessible from the NVR browser GUI interface, it is only accesible from the native NVR interface through the HDMI display.
As you mentioned, I have now set all the camera channels to manual. I have put a screenshot below of thi
I think, if the camera rebooted and the NVR refreshed the subset of the camera configuration settings that the NVR holds.At which point and under which conditions would the NVR change the default camera gateway (NOT THE NVR GATEWAY to be clearer) to the LAN gateway 192.168.1.1 ?
Hi aster1x,
My mistake - I forgot to mention I did try setting the default gateway of the cameras to the NVR POE NIC (192.168.254.1) as in your post but had no success. It does make sense that it should be 192.168.254.1 as the camera has no idea how to get to 192.168.1.1 as alastairstevenson said.
I have taken another screenshot of my current camera network settings which can be seen at the end of this post (Changed Default Gateway 192.168.254.1 and DNS 8.8.8.8). I tried sending a test email on the camera with the same email settings as my NVR which failed with message "Failed to connect the test server." The camera also cannot access time servers.
Hi alastairstevenson,
As you mentioned, I have now set all the camera channels to manual. I have put a screenshot below of this.
On the inability of the cameras to communicate over the internet, a couple of things to try:
From a PC on the LAN, ping the camera native address (eg 192.168.254.x)
ping -t 192.168.254.4
Pinging 192.168.254.4 with 32 bytes of data:
Reply from 192.168.254.4: bytes=32 time=3ms TTL=63
Reply from 192.168.254.4: bytes=32 time=4ms TTL=63
Reply from 192.168.254.4: bytes=32 time=5ms TTL=63
Reply from 192.168.254.4: bytes=32 time=3ms TTL=63
Reply from 192.168.254.4: bytes=32 time=7ms TTL=63
Reply from 192.168.254.4: bytes=32 time=4ms TTL=63
Reply from 192.168.254.4: bytes=32 time=3ms TTL=63
Reply from 192.168.254.4: bytes=32 time=4ms TTL=63
Reply from 192.168.254.4: bytes=32 time=4ms TTL=63
Ping statistics for 192.168.254.4:
Packets: Sent = 9, Received = 9, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 7ms, Average = 4ms
From a PC on the LAN, tracert/traceroute the camera native address (eg 192.168.254.x)
tracert 192.168.254.4
Tracing route to 192.168.254.4 over a maximum of 30 hops
1 4 ms 3 ms 4 ms 192.168.1.1
2 4 ms 3 ms 3 ms 192.168.1.101
3 3 ms 3 ms 3 ms 192.168.254.4
Trace complete.
On the camera, swap the DNS name of the NTP server for a valid IP address and see if the test works, which would point to name resolution.
My following proposal may not sound reasonable but in my case in the past it has worked.
1. Reboot both camera and NVR in sequence.
2. Revisit all menus and ensure that the network settings are as they were before the reboot and as they should be per mine and alastair's instructions. If they are not changed them again and repeat steps 1-2.
3. Leave both NVR and camera alone .... for a few days and then retest if the camera can send email. (It sounds strange, I know)
In my case after a few days the email dispatching started working OK. Then after months of propoer funcioning, the camera email dispatch stopped sending emails again. After a couple of weeks it started sending again!!!!!
This is HIK Vision functionality, it's not a bug!!!! (And we have paid for it!)
from a PC with working name resolution you can alsoUsed online service to convert time.windows.com to 13.85.70.43
Great that you got there! Let's hope it sticks.
Just for future info:
from a PC with working name resolution you can also
ping DNS_name
or
nslookup DNS_name
to see what the IP addresses are.
Pinging from computer (192.168.1.100) on LAN to camera behind NVR (192.168.254.4):
......
Out of curiosity, which email service are you using?
Hikvision had to issue updated firmware to fix the gmail issue, 3.4.80the NVR 7608 however does not have the TLS option but only SSL on/off.