# listenAddress: too many colons in address

**URL:** https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774
**Category:** Support
**Created:** [September 13, 2019, 9:11pm UTC](https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774 "2019-09-13T21:11:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![TwizzyDizzy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/twizzydizzy/32/6602_2.png) [@TwizzyDizzy](https://forum.syncthing.net/u/TwizzyDizzy)
#### Post date: [September 13, 2019, 9:11pm UTC](https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774/1 "2019-09-13T21:11:50Z")

</div>

Hi folks,

I’m just getting started with syncthing and am pretty much excited by all its features, its awesome documentation and … yeah, the project in general. That being said, I’m in a bit of a deadlock just now.

What I’m trying to do:

- Make my syncthing client instance listen to tcp4://0.0.0.0:22000
- At the same time listen to relay://my.relay.server:22067/?id=MY-RELAY-HASH

My use case is, that on the one hand I want to listen on all IPv4 addresse for **local discovery** and on my relay for **global discovery**.

The [documentation](https://docs.syncthing.net/users/config.html#listen-addresses) states:

> multiple can be specified by comma separation

This leads me to believe, that something like that should be a valid `listenAddress`:

`tcp4://0.0.0.0:22000,relay://my.relay.server:22067/?id=MY-RELAY-HASH`

That’s not the case. I’m getting an error saying:

```plaintext
[Z755E] 23:05:10 INFO: Listen (BEP/tcp): address 0.0.0.0:22000,relay:: too many colons in address
[Z755E] 23:05:10 INFO: c.S.listenerSupervisor: Failed service 'tcp4://0.0.0.0:22000,relay://my.relay.server:22067/?id=MY-RELAY-HASH' (1.000000 failures of 2.000000), restarting: true, error: "{tcp4://0.0.0.0:22000,relay://my.relay.server:22067/?id=MY-RELAY-HASH tcp4://0.0.0.0:22000,relay://my.relay.server:22067/?id=MY-RELAY-HASH} returned unexpectedly", stacktrace: [unknown stack trace]

```

My syncthing version is: `v1.2.2, Linux (64 bit)`

If anybody has an idea, I’d be interested to hear your opinion.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 13, 2019, 9:18pm UTC](https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774/2 "2019-09-13T21:18:05Z")

</div>

Might be misleading. In the GUI you use comma separation. In the config they should be separate tags. Which are you doing?

---

<div class="post-metadata">

### Author: ![TwizzyDizzy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/twizzydizzy/32/6602_2.png) [@TwizzyDizzy](https://forum.syncthing.net/u/TwizzyDizzy)
#### Post date: [September 13, 2019, 9:28pm UTC](https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774/3 "2019-09-13T21:28:42Z")

</div>

Hi @calmh,

I was working in the config file.

You are right. Adding two listenAddresses in the GUI, seperated by a comma, leads to the same config that would manually be achieved by this in `config.xml`:

```
<listenAddress>tcp4://0.0.0.0:22000</listenAddress>
<listenAddress>relay://my.relay.server:22067/?id=MY-RELAY-HASH</listenAddress>

```

Would you care for a pull request for the documentation pages to clarify this? 🙂

Cheers Thomas

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 14, 2019, 5:40am UTC](https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774/4 "2019-09-14T05:40:34Z")

</div>

That would be great. That article is primarily about the config format and should explain how that works. I guess it’s also linked from the GUI, so a note of some sort would be a appropriate.

---

<div class="post-metadata">

### Author: ![TwizzyDizzy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/twizzydizzy/32/6602_2.png) [@TwizzyDizzy](https://forum.syncthing.net/u/TwizzyDizzy)
#### Post date: [September 14, 2019, 12:00pm UTC](https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774/5 "2019-09-14T12:00:19Z")

</div>

PR created: [https://github.com/syncthing/docs/pull/468/files](https://github.com/syncthing/docs/pull/468/files)

Cheers Thomas

---

<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: [October 14, 2019, 12:05pm UTC](https://forum.syncthing.net/t/listenaddress-too-many-colons-in-address/13774/6 "2019-10-14T12:05:13Z")

</div>

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