I have an IP camera hooked up to a router along with other computers. I want to find the IP of the camera which is given dynamically by the router's DHCP server. I ping all of the possible IPs of the router to see which are active. I then want to use the client name to determine if the IP is a camera. However when I use
Dns.GetHostEntry("[IP of Camera]").HostName
I get a SocketException: No such host is known. The host names for the computers on the router show up, and when I look at the DHCP clients at the router's address it shows the camera client name. I also am able to get the camera's IP and MAC Address through ARP. Is there a way to get the client name instead of the host name?
Also, I have read examples of querying a DHCP server, but it doesn't work on non-Microsoft DHCP servers.
Since you're running Axis camera's, probably the easiest DNS solution is Multicast DNS. The other alternative is UPnP.