android icon indicating copy to clipboard operation
android copied to clipboard

ConnectException : Failed to Connect

Open VivekThummar52 opened this issue 3 years ago • 0 comments

Hey, i'm getting this error after scanning QR code(i'm generating QR code with API level 22 and scanning from device with API level 30) and not able to solve the problem

java.net.ConnectException: failed to connect to /192.168.0.1 (port 1128) from /:: (port 57805): connect failed: ECONNREFUSED (Connection refused)
                            W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:142)
                            W/System.err: at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
                            W/System.err: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
                            W/System.err: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
                            W/System.err: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
                            W/System.err: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
                            W/System.err: at java.net.Socket.connect(Socket.java:621)
                            W/System.err: at java.net.Socket.connect(Socket.java:570)
                            W/System.err: at com.genonbeta.CoolSocket.CoolSocket$ActiveConnection.connect(CoolSocket.java:516)
                            W/System.err: at com.genonbeta.CoolSocket.CoolSocket$Client.connect(CoolSocket.java:804)
                            W/System.err: at com.learning.sharefiles.utils.CommunicationBridge$Client.connect(CommunicationBridge.java:95)
                            W/System.err: at com.learning.sharefiles.utils.CommunicationBridge$Client.connectWithHandshake(CommunicationBridge.java:105)
                            W/System.err: at com.learning.sharefiles.utils.UIConnectionUtils$2.onConnect(UIConnectionUtils.java:152)
                            W/System.err: at com.learning.sharefiles.utils.CommunicationBridge.connect(CommunicationBridge.java:47)
                            W/System.err: at com.learning.sharefiles.utils.CommunicationBridge.connect(CommunicationBridge.java:35)
                            W/System.err: at com.learning.sharefiles.utils.UIConnectionUtils.setupConnection(UIConnectionUtils.java:145)
                            W/System.err: at com.learning.sharefiles.utils.UIConnectionUtils$1.onRun(UIConnectionUtils.java:81)
                            W/System.err: at com.learning.sharefiles.utils.InterruptAwareJob.run(InterruptAwareJob.java:16)
                            W/System.err: at com.learning.sharefiles.service.WorkerService$RunningTask.run(WorkerService.java:331)
                            W/System.err: at com.learning.sharefiles.service.WorkerService$1.run(WorkerService.java:181)
                            W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
                            W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                            W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
                            W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
                            W/System.err: at java.lang.Thread.run(Thread.java:923)
                            W/System.err: Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
                            W/System.err: at libcore.io.Linux.connect(Native Method)
                            W/System.err: at libcore.io.ForwardingOs.connect(ForwardingOs.java:94)
                            W/System.err: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:138)
                            W/System.err: at libcore.io.ForwardingOs.connect(ForwardingOs.java:94)
                            W/System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:156)
                            W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:134)

VivekThummar52 avatar Apr 09 '21 11:04 VivekThummar52