# Local Sync Only

**URL:** https://forum.syncthing.net/t/local-sync-only/11200
**Category:** Support
**Created:** [January 23, 2018, 5:29pm UTC](https://forum.syncthing.net/t/local-sync-only/11200 "2018-01-23T17:29:45Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Strathy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/strathy/32/4481_2.png) [@Strathy](https://forum.syncthing.net/u/Strathy)
#### Post date: [January 23, 2018, 5:29pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/1 "2018-01-23T17:29:45Z")

</div>

I am using Syncthing with 2 computers and 2 cell phones. I would like to sync these only when they are on the same wifi network at the same time … never over the internet. I can’t seem to find a setting that would make this happen.

Any advice?

---

<div class="post-metadata">

### Author: ![cosas](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cosas/32/14159_2.png) [@cosas](https://forum.syncthing.net/u/cosas)
#### Post date: [January 23, 2018, 5:31pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/2 "2018-01-23T17:31:55Z")

</div>

Disable global discovery.

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [January 23, 2018, 6:04pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/3 "2018-01-23T18:04:33Z")

</div>

In addition to disabling global discovery you also need to disable kcp (or at least stun by setting `stunKeepaliveSeconds` to 0).

---

<div class="post-metadata">

### Author: ![Strathy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/strathy/32/4481_2.png) [@Strathy](https://forum.syncthing.net/u/Strathy)
#### Post date: [January 23, 2018, 7:15pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/4 "2018-01-23T19:15:26Z")

</div>

Thanks. Disabling Global Discovery was easy, but I can’t see anything about kcp on my Android. Do you have more detail on this?

---

<div class="post-metadata">

### Author: ![Strathy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/strathy/32/4481_2.png) [@Strathy](https://forum.syncthing.net/u/Strathy)
#### Post date: [January 23, 2018, 7:18pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/5 "2018-01-23T19:18:49Z")

</div>

Is this what I disable? What will it do?

 ![Screenshot_20180123-132053](https://forum-uploads.syncthingcdn.net/original/2X/f/fa0c6c27403ba9252c4323746e355963443da4a8.png)

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [January 23, 2018, 7:35pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/6 "2018-01-23T19:35:31Z")

</div>

Not that. There should be an “Stun Keepalive Seconds” in the same view that you need to set to 0.

---

<div class="post-metadata">

### Author: ![Strathy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/strathy/32/4481_2.png) [@Strathy](https://forum.syncthing.net/u/Strathy)
#### Post date: [January 23, 2018, 8:11pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/7 "2018-01-23T20:11:35Z")

</div>

Found it. Set to 0. What does this do?

Also … Thanks all for the help!

 ![Screenshot_20180123-141323](https://forum-uploads.syncthingcdn.net/original/2X/b/bb5b5009a1dabc73551dc7266bf5a077d85127e0.png)

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [January 23, 2018, 8:26pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/8 "2018-01-23T20:26:49Z")

</div>

It disables stun lookup, which is used to connect to other devices by kcp thus disabling it. Maybe there is an easier way to disable kcp alltogether, but I wouldn’t know how from the top of my head.

---

<div class="post-metadata">

### Author: ![wweich](https://forum.syncthing.net/user_avatar/forum.syncthing.net/wweich/32/1063_2.png) [@wweich](https://forum.syncthing.net/u/wweich)
#### Post date: [January 23, 2018, 8:44pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/9 "2018-01-23T20:44:23Z")

</div>

Changing your listen address from `default` to `tcp://0.0.0.0:22000` disables KCP and relay.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [February 22, 2018, 8:44pm UTC](https://forum.syncthing.net/t/local-sync-only/11200/10 "2018-02-22T20:44:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
