Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2021-11-07 22:05:47.630 27015-27221/com.app.transfer W/System.err: OkSocket, Socket server 192.168.49.1:3876 connect failed! error msg:failed to connect to /192.168.49.1 (port 3876) from /192.168.49.181 (port 49326) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused) #199

Open
teja8352 opened this issue Dec 23, 2021 · 0 comments

Comments

@teja8352
Copy link

teja8352 commented Dec 23, 2021

021-11-07 22:05:47.630 27015-27221/com.app.transfer W/System.err: OkSocket, Socket server 192.168.49.1:3876 connect failed! error msg:failed to connect to /192.168.49.1 (port 3876) from /192.168.49.181 (port 49326) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)

2021-11-07 22:05:47.632 27015-27015/com.app.transfer E/WifiSocketClient: 连接失败(Connecting Failed)java.net.ConnectException: failed to connect to /192.168.49.1 (port 3876) from /192.168.49.181 (port 49326) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
2021-11-07 22:05:47.633 27015-27015/com.app.transfer E/WifiSocketClient: 异常信息为:com.xuhao.didi.socket.client.impl.exceptions.UnConnectException: java.net.ConnectException: failed to connect to /192.168.49.1 (port 3876) from /192.168.49.181 (port 49326) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
2021-11-07 22:05:47.635 27015-27015/com.app.transfer W/System.err: com.xuhao.didi.socket.client.impl.exceptions.UnConnectException: java.net.ConnectException: failed to connect to /192.168.49.1 (port 3876) from /192.168.49.181 (port 49326) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
2021-11-07 22:05:47.635 27015-27015/com.app.transfer W/System.err:     at com.xuhao.didi.socket.client.impl.client.ConnectionManagerImpl$ConnectionThread.run(ConnectionManagerImpl.java:198)
2021-11-07 22:05:47.638 27015-27015/com.app.transfer W/System.err: Caused by: java.net.ConnectException: failed to connect to /192.168.49.1 (port 3876) from /192.168.49.181 (port 49326) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
2021-11-07 22:05:47.638 27015-27015/com.app.transfer W/System.err:     at libcore.io.IoBridge.isConnected(IoBridge.java:273)
2021-11-07 22:05:47.638 27015-27015/com.app.transfer W/System.err:     at libcore.io.IoBridge.connectErrno(IoBridge.java:188)
2021-11-07 22:05:47.638 27015-27015/com.app.transfer W/System.err:     at libcore.io.IoBridge.connect(IoBridge.java:130)
2021-11-07 22:05:47.639 27015-27015/com.app.transfer W/System.err:     at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:129)
2021-11-07 22:05:47.639 27015-27015/com.app.transfer W/System.err:     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:356)
2021-11-07 22:05:47.639 27015-27015/com.app.transfer W/System.err:     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
2021-11-07 22:05:47.639 27015-27015/com.app.transfer W/System.err:     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
2021-11-07 22:05:47.640 27015-27015/com.app.transfer W/System.err:     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
2021-11-07 22:05:47.641 27015-27015/com.app.transfer W/System.err:     at java.net.Socket.connect(Socket.java:616)
2021-11-07 22:05:47.641 27015-27015/com.app.transfer W/System.err:     at com.xuhao.didi.socket.client.impl.client.ConnectionManagerImpl$ConnectionThread.run(ConnectionManagerImpl.java:188)
2021-11-07 22:05:47.642 27015-27015/com.app.transfer W/System.err: Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
2021-11-07 22:05:47.642 27015-27015/com.app.transfer W/System.err:     at libcore.io.IoBridge.isConnected(IoBridge.java:262)
2021-11-07 22:05:47.642 27015-27015/com.app.transfer W/System.err:   ... 9 more

Getting the above when I am trying to send files from one device to another device.

I am getting this issue from this plugin https://github.com/wengtaotao/cordova-plugin-wifi-direct

Sending files from Asus Zenfone 3(Android 8) to Redmi Note 9 Pro(Android 10) and Redmi Note 9 Pro got an invitation to accept. Once the invitation is accepted then get the above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant