I have a C # desktop application.
I have an ip camera and I want to assign it a static ipaddress. I should be able to get a “free / accessible” IP address from my dhcp server, reserve it and assign it to my ip camera. I can assign an IP address for my camera quite easily. But how can I get an accessible IP address and reserve it before it is assigned to another device connected to the network?
I have seen api calls to get client ipaddresses, but I can’t see if I can use them for what I want.
I can ping each IP address on the subnet to find out if the address is available, but this seems inefficient as I will wait for a timeout from checking this address. Moreover, he did not “reserve” it.
I hope I explain this clearly?
NB. I want to assign a static IP address for my ip camera. I have sdk to do this. I just need to assign a free ip address that is on the same subnet
source
share