Private IP Address Range Compatibility

Hello,

I am configuring an Ensenso camera and would like to confirm whether it is possible to assign an IP address from the 192.160.0.0/16 range. I understand that the documentation states the adapter must use a private IP address range, but I would like to verify if this specific range is supported.

Network Wizard — Guides - Ensenso SDK 3.6.1631 documentation

Could you please clarify whether an IP from this range would work with the Ensenso camera?

Thank you for your assistance.

Best,
Alfonso

Hi Alfonso,

the page you linked states that:

The adapter must be assigned a valid IP address from a private address range.

The private ranges, taken from the linked Wikipedia page, are

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16

The range you want to use, 192.160.0.0/16, is outside the private ranges.

The Network Wizard, which the page you linked to refers to, attempts to put your network configuration in a state which is most likely to work and least likely to cause any unwanted issues, which includes using an IP from a private range.

If you know what you are doing and are aware of the potential problems, then you are free to operate outside the bounds we set for the Network Wizard. NxLib will set a flag to complain when the adapter does not use a private IP, but that is all it does.

So we are not actively preventing you from using an IP address outside the private ranges, and it may work depending on your network setup. But it is not officially supported, meaning that the first thing we will do, should you ask for help, is to ask you to change your IP.

Just for the curious: any reason why you want to use this range specifically?

Regards,
Raphael

Hi Raphael,

Thanks for the clarification.

When I try to change the IP to a non-private range from NxView in the IP Config section, it does not allow me to apply the changes.

The reason we want to assign IPs outside the private range is that we have other cameras operating in different non-private IP ranges, and they are not managed by our system. We need all of them to be on the same subnet.

Is there a way to override this restriction in NxView or configure the camera manually?

Best regards,
Alfonso

There is no way to override the restriction in NxView.

To change the IP without using NxView, you can either write a small application or execute the ethernet configuration command manually in NxTreeEdit, e.g. by manipulating the default execute node just like you would using the NxLib API: first set the parameters, then the command name to execute.

To change the IP of, for example, a C-series camera with serial number 232422, I used the following parameters:

{
	"Cameras": "232422",
	"Configuration": {
		"Left": {
			"IpAddress": "192.160.0.15",
			"IpSubnetMask": "255.255.0.0",
			"Method": "Persistent"
		}
	}
}

I would recommend setting the persistent parameters flag if you use NxTreeEdit, it simplifies trial and error.