Failed to connect to /192.168.0.1 (port 80) from /25.71.46.36 (port 46982) after 3000ms

Hi Guys,

Hope you are doing well.

I am using RICOH THETA SE32 and integrating android SDK**(with kotlin)**. I am following the right steps but am unable to connect the camera. Getting this exception at detectedCameraInfo.pullWithShortTimeout();
protected CameraDevice detect() {
ItemCameraInfo detectedCameraInfo = null;

try {
    detectedCameraInfo = new ItemCameraInfo(false);
    detectedCameraInfo.pullWithShortTimeout();
} catch (Exception var4) {
    LOG.warn("Failed to pull camera info");
    return null;
}

Exception is: failed to connect to /192.168.0.1 (port 80) from /25.71.46.36 (port 46982) after 3000ms

I am following the below steps to connect the camera to the phone and integrate SDK-

  1. Add the SDK jar file to the project in the libs folder.
  2. Add dependencies and packaging options in build. grade file.
  3. Add documentation code to detect and connect the camera.
  4. Connect camera and phone through wifi.
  5. Add android:usesCleartextTraffic=“true” to manifest.

I am getting empty detected devices all the time from CameraDeviceDetector class because it throws exceptions in the protectedcameraDevicedetect method.

Here are some details about my android studio and device version-
Device- Pixel 4a(android 12)
Android Studio- Arctic Fox | 2020.3.1 Patch 3
Language- Kotlin

Please help me out with the above issue so I can go forward with the integration part.

Thanks and regards,
Gourav