DiscoveryManager manager = new DiscoveryManager();
manager.setDiscoveryTimeout(10000);
manager.discover(new DiscoveryListener() {
@Override
public void onDiscoveryStarted() {
System.out.println("Discovery started");
}
@Override
public void onDevicesFound(List<Device> devices) {
for (Device device : devices)
System.out.println("Devices found: " + device.getHostName());
}
});
I am using above code for get all host names of IP cameras, One thing I wish to mention before describe my problem. I am using IP webcam android app to make my mobile act like IP cam. With this setup above code give all host names. But this snippet didn't give the actual IP camera's hostname. thank you in advance.