Application / Device setup for remote network connections

0

My question is related to what I asked about here: Why is my connection refused when port-forwarding?

So I have a device hooked up to my router and I would like to be able to connect to this device from anywhere where I have an internet connection.

The device is a DVR with security cameras. It is meant to have this functionality.

I already configured my router to allow for the necessary ports at the devices address to be forwarded (at least I think I did everything right - see my other question)

So then when it comes to the configuration of the application, I go to the network settings, and I can select STATIC or DHCP. When I use STATIC, I can select all the IP addresses and such myself, when I go DHCP I can only change the ports, the IP addresses will be chosen by the app.

However, I think there might be something wrong with my app, because the IP addresses don't make sense, at least not if I compare it to the things I see on the configuration page for my router...

It says IP Address: 192.168.001.100 however my router has assigned 192.168.001.253 for this device!

subnet mask 255.255.255.000 seems to be in accordance with what my router says.

But gateway: 192.168.001.001 I think gateway should be the same address as I have to type in to get to my router, shouldn't it? And for me that's ending in 254

Finally it says the same number for DNS 1 which I have a feeling is not correct.

On my router I can see unter Services > Broadband > Status > Internet Details an entry for Primary DNS and Secondary DNS both which are IP addresses, but not so much the standard kind of 192.168.1.1, instead they are somewhat similar to my public IP (and I have a feeling I should not publish them here).

Also I should note that I had to use a Lan-Cable splitter because I ran out of plugs/ports on my router. So the device I am trying to connect is sharing a LAN cable with another device. I am using this kind of splitter

So here are my questions:

  • Why is my application messing up it's IP and such, when on DHCP?

  • Should I set up everything in STATIC mode and enter the information I get from my router?

  • With this method, can I safely use the DNS that I see on my router's configuration page?

  • Also I take it I have to use the private IP inside the network, not my public IP, right?

Thanks for any help, I'm not really savvy with all this network stuff...


EDIT: Starting a bounty

All I want to know is what numbers do I need to plug into the app, so that it'll allow me to connect remotely?

What numbers should I plug in for IP, Subnet Mask, Gateway, DNS1 and DNS2?

olli

Posted 2013-12-12T01:18:38.807

Reputation: 109

1Seems like you have another DHCP server on your network. Can you tell us more about the splitter you are using? Such a thing is not normally possible, so perhaps it something else. – Paul – 2013-12-12T01:23:42.240

Tell me about my DHCP server on my network, because I haven't got a clue about it :D This is the splitter I am using - amazon link It basically allows you to connect 2 devices to the internet using only 1 LAN cable.

– olli – 2013-12-12T01:25:31.260

1Can you confirm you are using DHCP when you get the gateway of 192.168.1.1 on the DVR? And if you go to http://192.168.1.1 in a browser do you get anything? – Paul – 2013-12-12T01:48:12.167

I don't get anything when visiting 192.168.1.1 (it says Chrome cant connect) and how could I confirm I am using DHCP? I could switch to stayic, the DVR will promt me to restart, and then i can switch back to DHCP, again, the DVR will promt me to restart, and then show those incorrect values again. Is that what you are asking? – olli – 2013-12-12T02:18:20.093

So I plugged the DVR directly in the router, not using the splitter anymore. I changet it to static (it allowed me to manyally enter IP, gateway, DNS, subnet), rebooted the DVR. Back up, I selected DHCP (now the fields to select IP, etc. disappeared). Rebooted. After a brief moment of loading the labels for IP, etc. populated with the values I listed above. – olli – 2013-12-12T02:24:54.030

By the way: I also have PPPoE as an option besides STATIC and DHCP. – olli – 2013-12-12T02:26:31.507

1If you are going to use portforward with this, then static is the way to go anyway, as you don't want the IP to change. The IP should be whatever you want (outside of the range of the DHCP scope on the router), the DNS should be the router IP and the gateway should be the router IP. – Paul – 2013-12-12T22:38:16.580

Thanks for your response, Paul, I apologize for my delay in getting back with you:

  • What should I set the Subnet Mask to?
  • Should I set it to the internal, private router ID or to my public IP? Or do you mean setting it to the public DNS/Gateway IPs that I see on my router settings page?
  • IP whatever I want, I've just set it to my public IP...? I mean there's a lot of options...

(By the way all the combinations I've tried so far were without success :-/ ) – olli – 2014-02-07T12:15:39.943

Answers

0

Don't use splitter, that won't work. For splitting ethernet cable you need active device called Switch.

Static IP

If your router has 192.168.1.254, then you may set these:

IP address: 192.168.1.253 (choose address for your DVR, forwarded one)
Netmask:    255.255.255.0
Gateway:    192.168.1.254 (router address)
DNS:        192.168.1.254 

I would recommend to set DHCP pool manually, that way you avoid possible IP collision.

In your routers config, choose Settings -> Lan -> DHCP and select Configure manually

Router Address:     192.168.1.254 (router address)
Subnet Mask:        255.255.255.0 
First DHCP Address: 192.168.1.1   (choose range excluding DVR's IP address)
Last DHCP Address:  192.168.1.252

week

Posted 2013-12-12T01:18:38.807

Reputation: 3 128

Thanks, this makes sense, but still not really doing anything... The status of my device under the routers config now has no IP address assigned to it. In my routers config under Settings -> Lan -> IP address allocation, what should I say for the DVR? public (select WAN IP mapping), private from pool 192.168.1.0 or private fixed: 192.168.1.XXX whereas XXX is between 1 and 252 – olli – 2014-03-02T21:22:19.213

For DVR, as long as you're using DNAT, you should have IP from your private pool. You can assign IP on your router, based on DVR's HW mac address. If that is not possible, then edit dhcp pool to avoid IP collisions and set fixed private address to DVR (out of dhcp pool). – week – 2014-03-02T21:41:42.113

I am sorry but I don't quite understand... So in your first post you recommend to set up the router so it's DHCP protocol will exclude the DVRs specified IP address. From the router I can only assign IPs which are part of the specified range... So should I tell my router to set a static IP for the DVR, from within the DHCP range, or should I do something else? – olli – 2014-03-06T03:19:06.530

I cleared the list of devices on my router, and as of right now it wont even recognize the dvr when plugged in - also the little LEDs at the LAN port wont light up... I'VE HAD IT WORKING ONCE BEFORE don't know what the heck is going on now... – olli – 2014-03-06T03:53:23.097

If LED's wont light up on both ends (router and DVR), than check if the device itself and router's ports are working. – week – 2014-03-07T11:36:51.137