shandor0 Posted May 9, 2014 Report Share Posted May 9, 2014 Hi, We are considering using Bitorrent Sync API in our code but most of our customers are using our product on intranet only and do not necessarily have an internet connection. 1) Is Internet connection required for the API to work ?2) Is it possible that sync api will be de-activated one day via a remote call ? ThanksAdi Quote Link to comment Share on other sites More sharing options...
delegatevoid Posted May 10, 2014 Report Share Posted May 10, 2014 Hi, An internet connection is not required for the API to workand unless you expose the port on which the web service is running tothe outside world by using NAPT mappings there is no way to accessthe web service from outside your local network. So, long story short: By default the API is intended to be used in an LAN environment,which means it is no problem for you or your customers to implement it. As far as syncing is concerned, devices on the same LAN will normallysync directly witch each other without connecting to anything else. If you want to lock it down 100%, simply disable the following features for the sync folder: Use relay server when requiredUse tracker serverSearch DHT networkIf you want to sync across devices on different networks,you can still disable all of the above, but you'll have to expose the port which BTSyncuses to the outside network (this is not the same as the port on which the web service / api is running)and then add a predefined host to the "clients" sync folder configuration. The sync API cannot be de-activated using a remote call, since the API service is not exposedto the internet. And even if you do expose it to the internet (do so with care), de-activation wouldonly be possible if that was build into the btsync application. There is a lot of controversy concerning the API key required to enable the API features,perhaps the developers did not think it through, or they wanted a way to limit the number of people fiddling around with it until there is a "stable" release, who's to say, but giventhe nature of btsync I do not think it is the intention of the Bittorrent company to "control" how we use btsync. Just for reference, here's a quick example network: If you look at both local area networks (two intranets if you will) then, by default, the API exposedby your BTSync instances will only be available for devices within the same LAN.No internet connection required. If you have more than one LAN connected into one VPN, the API will, by default,be availablefor devices within the entire VPN. Quote Link to comment Share on other sites More sharing options...
shandor0 Posted May 10, 2014 Author Report Share Posted May 10, 2014 Hi Delegatevoid, and thanks for the elaborate answer.I ran a test on my LAN by disconnecting the WAN at the modem level... and the BTSync clients ( 2 pcs) stopped synching. I reconnected to the internet (plugging the modem back in ) and synching started. I know very little about the bitorrent protocol but I guess that even machines on my LAN need to download a tracker from a server somewhere on the internet.Can you confirm or refute the results of my test ? Thanks Quote Link to comment Share on other sites More sharing options...
delegatevoid Posted May 13, 2014 Report Share Posted May 13, 2014 I'll take a look at it asap, probably will not be today though as I'll be out of the office Quote Link to comment Share on other sites More sharing options...
delegatevoid Posted May 20, 2014 Report Share Posted May 20, 2014 Hi,So here's what I did just to verify what we already know. I set up a second LAN that is not connected to the internet in anyway.I added two systems to that LAN and installed BTSync on them.I created a sync folder on one systemI added the sync folder on the other system (using the key provided by the first)Seconds later the devices started syncingThis is the expected behavior, the systems discover each other directlywithout the need for an internet connection. Let's say that for some reason your systems had to use an external trackeror relay host to find each other or to sync data, then there's probably something else at play here. Perhaps firewall rules somewhere? Quote Link to comment Share on other sites More sharing options...
marc321 Posted September 6, 2014 Report Share Posted September 6, 2014 Also, make sure the UPnP service is running on Window, and the computers are using the same subnet mask. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.