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

ConnectException : Failed to Connect #162

Description

@VivekThummar52

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions