Houston I have a problem

alohaalex

Young grasshopper
Dec 31, 2015
36
3
Good morning everyone, I have got a 10 hikevision cameras that they worked perfectly fine until I was forced to change my router, today I installed a TP link router, which I was able to connect with my provider and keep my ecstatic IP address, which is still the same as the one I used with the other router. I connect all my cameras to a switch and the switch to the router. I can't see the cameras using the IVMS and neither if I type their individuals IP address on the web brouser.I have the information of Each camera's IP address and the port that was assigned to each one of them. I logged in on my TP link router and I tried to open te ports using the same ip address and port each camera used before but I get this message:
  • The IP address and LAN IP address should be in the same subnet.

I believe that the router must be the problem, back in the days when I set up all these cameras five years ago I used a PC with Windows now I don't have the computer anymore and the only thing I have is an iMac..
I'm not very computer savvy, and it took me forever to set up the cameras five years ago I was against of changing the router because I knew it was gonna be hard again, but I thought that it shouldn't be as hard as the first time because I kept all the cameras IP address so I was hoping this turn to be an easy task but nothing is easy I appreciate any suggestion or questions that you have. Please understand that computers and electronics is not my forte and I am very ignorant when it comes to networking and other things where computers. Thanks for your help.
 
So here is what I would do. Please forgive me as I don't remember much of my Mac days.. But I will try the best I can.. Need to open Terminal this should be found under Application, Util.. Once you do that type ifconfig and this should list the Mac Ip address and other info. Want to make sure that your IP for your computer is in the right network range as your Cameras.. Also can type arp -a. This should give you a list of IPs and Mac addresses in your lan.. In there it should show the connected cameras info.. Some thing like en0 would normally be used for wifi and en1 or 2 would be for the Ethernet connected but could have been named also anything you want to make sure that the IP for your router and the computer are on the same network IP range for the LAN not just the outside WAN IP address and my guess might have been what they might have been talking about keeping the IP not sure..

So let say this.. IF your old router was connected to 192.168.1.xxx and your new one is on 192.168.0.xxx then you wouldn't have access to your cameras that I am going to guess was setup with static IPs and still on the 168.1 range..

So I would double check that you are infact in the right IP network range as you expect to have been in for your cameras..
 
So here is what I would do. Please forgive me as I don't remember much of my Mac days.. But I will try the best I can.. Need to open Terminal this should be found under Application, Util.. Once you do that type ifconfig and this should list the Mac Ip address and other info. Want to make sure that your IP for your computer is in the right network range as your Cameras.. Also can type arp -a. This should give you a list of IPs and Mac addresses in your lan.. In there it should show the connected cameras info.. Some thing like en0 would normally be used for wifi and en1 or 2 would be for the Ethernet connected but could have been named also anything you want to make sure that the IP for your router and the computer are on the same network IP range for the LAN not just the outside WAN IP address and my guess might have been what they might have been talking about keeping the IP not sure..

So let say this.. IF your old router was connected to 192.168.1.xxx and your new one is on 192.168.0.xxx then you wouldn't have access to your cameras that I am going to guess was setup with static IPs and still on the 168.1 range..

So I would double check that you are infact in the right IP network range as you expect to have been in for your cameras.

The IP address before and now is the same that never change and it is In this format 148.150.31.xx so the old and the new router connects to the same ip address.
The IP address of each cámara was and it is the same as before for example 192.168.1.160 with port 8016 opened each cámara has the same form it only change one number and the end same with the ports
 
Last edited:
Thanks.. I think that all looks great for your side of things. But asking for help off the error that you had from your router and the help offered could 1 help solve the issue? please open terminal and type ifconfig and confirm your computers IP address as I asked in my first post..

Per your Error..
The router checks if the destination device's IP address (e.g., 192.168.1.160) is within the same subnet as its LAN interface (e.g., 192.168.0.x). If the device's IP doesn't fall within the router's subnet range, the port forwarding rule cannot be applied.

For example:

Router's LAN IP: 192.168.0.1 (subnet 255.255.255.0)
Camera's IP: 192.168.1.160
The camera is in the 192.168.1.x subnet, which does not match the router's 192.168.0.x subnet.

Having the cameras setup on a Static IP address will not matter to the router if it isn't in the routers correct subnet and if the gateway is also incorrect.. I was trying to offer some help as you were asking? Sorry it didn't' seem helpful. If you are trying to access from outside of your LAN that is all different issue..
 
  • Like
Reactions: alastairstevenson
I logged in on my TP link router and I tried to open te ports using the same ip address and port each camera used before but I get this message:
  • The IP address and LAN IP address should be in the same subnet.
I'm guessing that the LAN IP address of the previous router is in a different range of the default LAN IP address of the new router.
You can confirm this as you know the (presumed to be static) IP addresses of the cameras, and also the LAN IP address of the new router as you are able to log in to it, so you will be able to compare.
If so - the simplest solution to get everything back accessible again is to change the LAN address of the new router (and the DHCP scope / range) to be the same as that of the previous router.
If so - everything will then work as it used to before the router replacement.

The LAN IP address is separate and independent of the external (public) IP address that you've mentioned.
 
+1^^ to the above "....the simplest solution to get everything back accessible again is to change the LAN address of the new router (and the DHCP scope / range) to be the same as that of the previous router."

You may want to consider calling someone with a touch of network savvy to do it for you since you said "...I'm not very computer savvy, and it took me forever to set up the cameras five years ago." :cool:
 
  • Like
Reactions: bigredfish
Thanks.. I think that all looks great for your side of things. But asking for help off the error that you had from your router and the help offered could 1 help solve the issue? please open terminal and type ifconfig and confirm your computers IP address as I asked in my first post..

Per your Error..
The router checks if the destination device's IP address (e.g., 192.168.1.160) is within the same subnet as its LAN interface (e.g., 192.168.0.x). If the device's IP doesn't fall within the router's subnet range, the port forwarding rule cannot be applied.

For example:

Router's LAN IP: 192.168.0.1 (subnet 255.255.255.0)
Camera's IP: 192.168.1.160
The camera is in the 192.168.1.x subnet, which does not match the router's 192.168.0.x subnet.

Having the cameras setup on a Static IP address will not matter to the router if it isn't in the routers correct subnet and if the gateway is also incorrect.. I was trying to offer some help as you were asking? Sorry it didn't' seem helpful. If you are trying to access from outside of your LAN that is all different issue..
when I gave the arp command to my iMac it shows different IP addresses with the format 192.168.0.xx and xxx, but it does say names or devices.
this iMac only connect to the internet via wireless, my wifi settings shows 192.168.0110 with a router address of 192.168.0.1, my internet provider gave the static ip address 158.140.xx.xx which is still the same as the one I used to have in the old router.
 
I'm guessing that the LAN IP address of the previous router is in a different range of the default LAN IP address of the new router.
You can confirm this as you know the (presumed to be static) IP addresses of the cameras, and also the LAN IP address of the new router as you are able to log in to it, so you will be able to compare.
If so - the simplest solution to get everything back accessible again is to change the LAN address of the new router (and the DHCP scope / range) to be the same as that of the previous router.
If so - everything will then work as it used to before the router replacement.

The LAN IP address is separate and independent of the external (public) IP address that you've mentioned.
the ip address provided by my internet provider is the same it never change.the only thing I see a discrepancy in the routers ip addresses, the old router had 192.168.1.1 i and the new one show as 192.168.0.1 all my cameras ip addresses are 192.168.1.160 (161,162 etc) will that 0 create the problem?
 
Yes. As the message that you saw said, that's putting things on another subnet 192.168.0.x vs 192.168.1.x. As above, you can go into the router and change the subnet that it's using for your internal network to be .1 and then everything should be as you had if before.
 
  • Like
Reactions: alastairstevenson
the ip address provided by my internet provider is the same it never change.the only thing I see a discrepancy in the routers ip addresses, the old router had 192.168.1.1 i and the new one show as 192.168.0.1 all my cameras ip addresses are 192.168.1.160 (161,162 etc) will that 0 create the problem?

That is the problem that everyone is saying. The WAN IP address your Internet Provider is irrelevant. What is relevant is what are the IP addresses the router is giving out.

The 192.x.x.x. is the LAN side.

If the old router was 192.168.1.1 and the new router is 192.168.0.1 then it won't see cameras at 192.168.1.16x

You need to change the new router to 192.168.1.1 and all will be good.

Or change the 1 to 0 in all the cameras LOL
 
  • Like
Reactions: alastairstevenson
+1^^^.
And changing the LAN IP of device (the router) is easier and quicker, IMO, than changing the IP of 4, 8, 12 or more cameras! :cool:
 
  • Like
Reactions: alastairstevenson
Well guys the problem is fixed thanks to your help. The answers were there. It just took me a while to comprehend what I was supposed to be doing. I changed the router line IP address and I was able to open the reports for each camera and everything is working thanks again you guys rock!