id: 534a0be6c8c14a1f87a7f4e65311df65
parent_id: 
item_type: 1
item_id: 8c436fd301584cb6920310cff7974396
item_updated_time: 1764345504459
title_diff: "[{\"diffs\":[[1,\"What ports and protocols are used by Sync\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":41}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>What ports and protocols are used by Sync?</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"32543\\\"></a>\\\r\\\n<h1>What ports and protocols are used by Sync?</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:simplified\\\">\\\n<div><br/></div><div style=\\\"font-size: 16px; display:block; min-width: 100%;\\\"> <div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;\\\"><div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;font-family:&quot;PT Serif&quot;;font-size:16px;line-height:1.5em;color:rgb(31, 9, 9);text-align:left;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;width:36em;z-index:200;padding-left:2em;padding-right:2em;margin-left:auto;margin-right:auto;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-left:-25px;margin-right:25px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;padding-top:0px;padding-bottom:9em;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><h1 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;border:0px;font:inherit;vertical-align:baseline;font-size:35px;font-weight:normal;line-height:35px;margin-bottom:20px;padding:0px;margin:0px;\\\"> What ports and protocols are used by Sync? </h1><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;height:1em;line-height:1;text-align:center;margin:0px;padding-top:1.5em;padding-bottom:1.5em;margin-bottom:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;margin:0px;margin-bottom:0px;\\\"><span style=\\\"font:inherit;position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;margin:0px;opacity:0.5;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);\\\"></span></div></div></div>\\\n\\\n      \\\n        \\\n          <p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">Sync uses various ports and protocols to function and connect peers. Depending on the network your peers are in, these shall be open and let traffic through, in and out, on either side:</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"> 1. First Sync needs to learn addresses of tracker and <a href=\\\"https://help.resilio.com/hc/en-us/articles/204754779-What-is-a-Relay-Server-\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">relay</a> servers. For that it must be able download and parse sync.conf file.  Discovery of tracker and relay IPs: <br/> - <em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\">HTTPS, port 80: access to config file <a href=\\\"https://config.resilio.com/sync.conf\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">https://config.resilio.com/sync.conf</a> via DNS name.</em></p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">2. Once tracker and relay are known, Sync must be able to connect to tracker so as to communicate its own IP address (public and local) and the list of shares it has and learn IP addresses of other peers with same shares from it.<br/>- <em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\">Connecting to the tracker server for automatic peer discovery: TCP and UDP, relevant port and addresses are <a href=\\\"http://config.resilio.com/sync.conf\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">here</a></em></p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">3. Once Sync learns addresses of other peers, it will attempt to connect by these addresses directly, using both TCP and UDP. To make it possible, <em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\">Sync's listening port</em>, as defined in settings, must be opened and forwarded on all firewalls, NATs and routers between the peers.</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">4. If direct connection is not possible, Sync will switch to indirect connection through <a href=\\\"https://help.resilio.com/hc/en-us/articles/204754779-What-is-a-Relay-Server-\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">relay</a> server. <br/>- <em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\">Connecting to relay server to transfer data if direct connection is not possible: TCP, relevant port and addresses are <a href=\\\"http://config.resilio.com/sync.conf\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">here</a>.</em></p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">5. If peers are located in LAN, Sync can do without tracker and relays, provided peers are discovered through broadcast packets. Peer discovery in LAN:<br/> - <em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\">Multicast UDP, 239.192.0.0 over port 3838<br/></em><em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\"> - Broadcasts, 192.168.1.255<br/></em>If broadcasts are not configured, Sync will be using tracker to discover other peers. </p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">To ease port mapping, automatic port mapping over UPnP and NAT-PMP can be configured in router<br/> - <em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\">UDP, multicast to 239.255.255.250 port 1900</em><br/> - <em style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-style:italic;\\\">UDP, unicast to default gateway port 5351</em></p></div></div></div><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;position:absolute;top:-1000px;left:-1000px;\\\">Measure</div><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:absolute;top:-1000px;left:-1000px;line-height:1;margin-bottom:0px;\\\">Measure</div></div></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":7866}]"
metadata_diff: {"new":{"id":"8c436fd301584cb6920310cff7974396","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345768607,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:13:01.156Z
created_time: 2025-11-28T16:13:01.156Z
type_: 13