Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

ConnectException : Failed to Connect #162

Open
VivekThummar52 opened this issue Apr 9, 2021 · 0 comments
Open

ConnectException : Failed to Connect #162

VivekThummar52 opened this issue Apr 9, 2021 · 0 comments

Comments

@VivekThummar52
Copy link

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant