Bug 382015 - discovering devices failed: sendmsg to proxy misbehaviour
Summary: discovering devices failed: sendmsg to proxy misbehaviour
Status: RESOLVED MOVED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 1.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-05 14:28 UTC by Lion Yang
Modified: 2017-07-06 03:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lion Yang 2017-07-05 14:28:38 UTC
KDE Connect Version: 1.0.2

This always happens since I upgrade Qt-5 from 5.8.0 to 5.9.0.

>> QNativeSocketEngine::bind() was not called in QAbstractSocket::UnconnectedState <<

Log:
```
21:53:48 kdeconnectd[1270]: kdeconnect.core: Broadcasting identity packet
21:53:48 kdeconnectd[1270]: QNativeSocketEngine::bind() was not called in QAbstractSocket::UnconnectedState
21:53:52 kdeconnectd[1270]: kdeconnect.core: Sending onNetworkChange to  1  LinkProviders
21:53:52 kdeconnectd[1270]: kdeconnect.core: Broadcasting identity packet
21:53:52 kdeconnectd[1270]: QNativeSocketEngine::bind() was not called in QAbstractSocket::UnconnectedState
21:53:55 kdeconnectd[1270]: kdeconnect.core: Sending onNetworkChange to  1  LinkProviders
21:53:55 kdeconnectd[1270]: kdeconnect.core: Broadcasting identity packet
21:53:55 kdeconnectd[1270]: QNativeSocketEngine::bind() was not called in QAbstractSocket::UnconnectedState
```

Network:
```
   95 131.063031253 192.168.1.103 → 192.168.1.109 UDP 861 39351 → 1716 Len=819
   96 131.063408694 192.168.1.103 → 192.168.1.109 UDP 861 39351 → 1714 Len=819
   97 131.063466932 192.168.1.109 → 192.168.1.103 ICMP 590 Destination unreachable (Port unreachable)
```

Connection:
```
lion@Lion-Laptop [ ~ ] $ ss --listen --udp --tcp --numeric | grep 171
udp    UNCONN     0      0         *:1716                  *:*                  
tcp    LISTEN     0      50       :::1716                 :::*                  
```
Comment 1 Aleix Pol 2017-07-05 22:59:43 UTC
Not that this is not a problem, but I've been using Qt 5.9 for a while and I haven't experienced this issue.

Is it a normal local network?
Comment 2 Lion Yang 2017-07-06 01:41:13 UTC
(In reply to Aleix Pol from comment #1)
> Not that this is not a problem, but I've been using Qt 5.9 for a while and I
> haven't experienced this issue.
> 
> Is it a normal local network?

Yes, absolute, reproducible on other network (WiFi) with my laptop. Investigating...

Another strange thing is, most of the time I click the 'Refresh' or 'Request Pair' on the control panel, there is no any network flow. The former says
> kdeconnect.core: Sending onNetworkChange to  1  LinkProviders
> kdeconnect.core: Broadcasting identity packet
> QNativeSocketEngine::bind() was not called in QAbstractSocket::UnconnectedState

, the latter says
> Device pairing error "Device not reachable"
Comment 3 Lion Yang 2017-07-06 02:52:32 UTC
Okay. I found KDE Connect uses proxy... until now. It's astonishing.

Another issue is KDE Connect sticks with the old proxy setting, after I changed proxy setting in System Settings. Until I restart my session (logout-and-login).
Comment 4 Lion Yang 2017-07-06 03:25:45 UTC
Marking this RESOLVED and splitting it into two...

#382037 and #382038