how can I find ip address of my camera ip. Camera is connected by dhcp, so every time it is connected ip address is different. I can find ip address using "Ip Camera Finder" (witch shows all cameras connected, next question, how this program works?) but I need to do this from java (android) or c# (win ce).
Normally the IP cameras have control port number in the range: 8150 - 8350.
The IPCam Finder will scan the IPs in local Network which have opened ports in above range.
For your case, you can use Addres Resolution Protocol ARP - a
or RARP command to find your MAC address of your IP Camera.
Then in your program, hardcode the MAC address and find the bound IP Adress.
With programming in C#, refer to: www.mostthingsweb.com/2011/11/reading-arp-entries-with-c/
Another way: You can always register a Fix IP Address in DHCP pool for your Camera by configuring Reservation in DHCP server (map fix IP to a specified MAC address).
Well havent been here some time, I did found the answer to my question, here it is:
void SendCamData() {
SendCamSearch();
ReceiveCams();
}
void SendCamSearch() {
udpC = new UdpClient();
try {
udpC.Send(MessForCamsByte, MessForCamsByte.Length, CamsIpEndPoint);
} catch (Exception e) {
Console.WriteLine("Blad wysylanie search cam - " + e.ToString());
}
}
void ReceiveCams() {
if (udpC != null) {
listener = new Thread(UdpReceiveThread);
listener.IsBackground = true;
listener.Start();
listener.Join(2000);
SendCamIpAndPort(CamsValsBuilder.ToString());
}
}
and the best part was this message
string MessForCams = "4d4f5f490000000000000000000000040000000000000000000001";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.