{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing-android/issues/643","repository_url":"https://api.github.com/repos/syncthing/syncthing-android","labels_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/643/comments","events_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/643/events","html_url":"https://github.com/syncthing/syncthing-android/issues/643","id":154903671,"number":643,"title":"Discovery issues","user":{"login":"Tiemichael","id":11308991,"avatar_url":"https://avatars.githubusercontent.com/u/11308991?v=3","gravatar_id":"","url":"https://api.github.com/users/Tiemichael","html_url":"https://github.com/Tiemichael","followers_url":"https://api.github.com/users/Tiemichael/followers","following_url":"https://api.github.com/users/Tiemichael/following{/other_user}","gists_url":"https://api.github.com/users/Tiemichael/gists{/gist_id}","starred_url":"https://api.github.com/users/Tiemichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tiemichael/subscriptions","organizations_url":"https://api.github.com/users/Tiemichael/orgs","repos_url":"https://api.github.com/users/Tiemichael/repos","events_url":"https://api.github.com/users/Tiemichael/events{/privacy}","received_events_url":"https://api.github.com/users/Tiemichael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-15T11:29:12Z","updated_at":"2016-05-15T14:22:00Z","closed_at":null,"body":"#When not connected to LAN, my android device is often unable to connect to other devices on LAN.\r\nHere is my configuration:\r\n- a PC and a Raspberry running Syncthing 0.12.24 with Static LAN IP, and 'dynamic' Host IP.\r\n- a Android 5.02 Phone running Syncthing 0.7.17 / 0.12.22 either connected to LAN via static IP, or a dynamic IP via 3G/4G or WiFi.\r\n\r\nThe PC uses port 22001, forwarded by the router to the PC (192.168.1.100)\r\nThe Raspberry used port 22000, forwarded by the router to the Raspberry (192.168.1.145)\r\nThe external IP is dynamically linked  (via service like dyn-dns) to myprivateip.com, and ports 22000 and 22001 of myprivateip.com are confirmed open when testing from the phone.\r\n\r\nDetection is within a few seconds if all devices are connected by LAN, and 5 - 15 - minutes or even never  if the phone is using 3G/4G.\r\nTo facilitate easy detection I put this into the config.xml of the phone PHONE2, but somehow it seems not working as expected\r\n ```\r\n   <device id=\"G5XDXXX-6RRL3KY-2TT5QSN-Z6IYI5J-ZJZIRUS-52SM35G-T6ZADOM-TKLVGGG\" name=\"Raspberry\" compression=\"metadata\" introducer=\"false\">\r\n        <address>tcp://192.168.1.145:22000</address>\r\n        <address>tcp://myprivateip.com:22000</address>\r\n        <address>dynamic</address>\r\n    </device>\r\n\r\n    <device id=\"PJU2XXX-EUNTE6Z-IBLULNJ-YEKAVLV-FQ7PPHU-ND4T5AI-JT3IB6M-XCWFGGG\" name=\"PC\" compression=\"metadata\" introducer=\"true\">\r\n        <address>tcp://192.168.1.100:22001</address>\r\n        <address>tcp://myprivateip.com:22001</address>\r\n        <address>dynamic</address>\r\n    </device>\r\n\r\n    <device id=\"SUWCXXX-O4VAMNC-OYSZCB7-QM7SIGF-O7YVTRE-YFXGAZS-V6PKSEI-YV3XGGG\" name=\"PHONE2\" compression=\"metadata\" introducer=\"false\">\r\n        <address>dynamic</address>"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing-android/issues/comments/219288610","html_url":"https://github.com/syncthing/syncthing-android/issues/643#issuecomment-219288610","issue_url":"https://api.github.com/repos/syncthing/syncthing-android/issues/643","id":219288610,"user":{"login":"AudriusButkevicius","id":1144861,"avatar_url":"https://avatars.githubusercontent.com/u/1144861?v=3","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T14:22:00Z","updated_at":"2016-05-15T14:22:00Z","body":"It clearly isn't being forwarded if its discovered and it still can't connect. Not sure what your intention was in removing it, because it tries all addresses anyway. I suggest you actually verify the mapping works as you expect before blaming syncthing."}}