I'm getting an error when trying to use ServerSocket.GetMyIP.
If you need something else from the logs then just tell me.
Logs:
If you need something else from the logs then just tell me.
Logs:
B4X:
java.net.SocketException
at java.net.NetworkInterface.rethrowAsSocketException(NetworkInterface.java:212)
at java.net.NetworkInterface.readIntFile(NetworkInterface.java:207)
at java.net.NetworkInterface.getByName(NetworkInterface.java:114)
at java.net.NetworkInterface.getNetworkInterfacesList(NetworkInterface.java:270)
at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:262)
at anywheresoftware.b4a.objects.SocketWrapper$ServerSocketWrapper.GetMyIP(SocketWrapper.java:175)
at aa.network.main._tmrip_tick(main.java:378)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:105)
at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:103)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: /sys/class/net/usb0/ifindex: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:406)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:118)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:150)
at libcore.io.IoUtils.readFileAsBytes(IoUtils.java:115)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:109)
at java.net.NetworkInterface.readIntFile(NetworkInterface.java:200)
... 18 more
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:390)
... 23 more
java.net.SocketException