# V3 local\_conf.json "serv\_gw\_key": "what value?"

**URL:** <https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753>\
**Category:** Migrating Gateways to V3\
**Created:** [March 20, 2021, 11:53am UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753 "2021-03-20T11:53:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hphillip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/hphillip/32/46261_2.png) [@hphillip](https://www.thethingsnetwork.org/forum/u/hphillip)\
**Post date:** [March 20, 2021, 11:53am UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/1 "2021-03-20T11:53:09Z")

</div>

Just having a quick experiment with migrating my v2 gateway to v3 (obviously without deleting my v2 definition so I can swiftly swap back)

However mp\_pkt\_fwd is hitting an issue with: “ERROR: [TTN] Connection to server “eu1.cloud.thethings.network” failed, retry in 30 seconds”

I have managed to convince myself that the issue is the value in local\_conf.json “serv\_gw\_key”: “value”

With v2 the **Gateway Key** is generated for me by the console and is of the form ttn-account-v2.blahblahblah

But how do I generate an equivalent Gateway Key in v3 to go into my “serv\_gw\_key”: “value” ?

I see “Add API key” function in the v3 console but obviously cannot see the wood for the trees 😉  
Do I use one of those to generate a Gateway Key ? And if so which?

Any comments much appreciated!

(If I can just satisfy myself that the migrated gateway can talk to eu1.cloud.thethings.network I will feel much happier about the looming v2 switch off, but I’ll keep the v2 gateway running for as long as possible)  
Thanks

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [March 20, 2021, 12:46pm UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/2 "2021-03-20T12:46:36Z")

</div>

You need an API key with

> Link as Gateway to a Gateway Server for traffic exchange, i.e. write uplink and read downlink

For the host entry you need to append :1881 for the correct port.

And with MP forwarder you could consider connecting to both V2 and V3 by adding entries for both.

---

<div class="post-metadata">

**Author:** ![hphillip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/hphillip/32/46261_2.png) [@hphillip](https://www.thethingsnetwork.org/forum/u/hphillip)\
**Post date:** [March 20, 2021, 12:48pm UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/3 "2021-03-20T12:48:05Z")

</div>

Thanks @kersing I will give that a try.

_Update:_  
Fantastic - that worked!

13:03:16 INFO: [Transports] Initializing protocol for 2 servers  
13:03:16 INFO: [TTN] server “bridge.eu.thethings.network” connected  
13:03:16 INFO: [TTN] server “eu1.cloud.thethings.network” connected  
13:03:16 INFO: [main] Starting the concentrator  
13:03:19 INFO: [main] concentrator started, radio packets can now be received.  
13:03:19 INFO: [up] Thread activated for all servers.

The subtle bit I was missing was the port 1881  
Thank you so much 😃

---

<div class="post-metadata">

**Author:** ![joachim1111](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/joachim1111/32/35697_2.png) [@joachim1111](https://www.thethingsnetwork.org/forum/u/joachim1111)\
**Post date:** [August 11, 2021, 9:54am UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/5 "2021-08-11T09:54:17Z")

</div>

Hello,  
i’m tryin to get my gateway on the v3 with no succes. could i get a screenshot of your local\_conf.json file?  
thanks!

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [August 11, 2021, 10:38am UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/6 "2021-08-11T10:38:29Z")

</div>

Please don’t do screen shots for text files.

There is a button on the gateway page that will download a conf file for that gateway.

---

<div class="post-metadata">

**Author:** ![joachim1111](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/joachim1111/32/35697_2.png) [@joachim1111](https://www.thethingsnetwork.org/forum/u/joachim1111)\
**Post date:** [August 11, 2021, 10:46am UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/7 "2021-08-11T10:46:42Z")

</div>

This is my local\_conf.json file. is it correct that the serv\_gw\_id is the same as my gateway id?  
thanks !

```
{
    "gateway_conf": {
        "gateway_ID": "FFFEb827e *****",
        "description": "joachimindourgateway",
         "servers": [
            {
               "serv_type": "ttn",
                "server_address": "eu1.cloud.thethings.network",
                "serv_gw_id": "FFFEB827E ****",
                "serv_gw_key": "NNSXS.CQ6YM67E7M5PAYV5YB4LHX3SUS445ZGL3F2EQBY.M3EJ6UNPVUPIJ7ZD6ZSX65BV2PP *****",
                "serv_enabled": true
            }
        ],
        "gps": false,
  "fake_gps": true,
  "ref_latitude": 0,
  "ref_longitude": 0,
  "ref_altitude": 0,
  "gps_tty_path":"/dev/serial1"
    }
}
```

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [August 11, 2021, 11:32am UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/8 "2021-08-11T11:32:17Z")

</div>

The Gateway ID on the console is for your personal identification of your gateway. The Gateway EUI is, confusingly, called the gateway\_ID in the conf file.

There is no way that your EUI would start FFFE - anytime we use FFFE, it goes in the middle. And it goes on public record so there is no point \*\*\*\*\* it out.

Given the made up EUI, can you tell us what gateway you own - brand and model please.

It’s not clear if you tried downloading the configuration file from the console as suggested?

I’ve formatted post as per [guidelines](https://www.thethingsnetwork.org/forum/t/how-do-i-format-my-forum-post-howto/8735) - please use \</\> on the toolbar to format blocks of code, logs or conf files.

---

<div class="post-metadata">

**Author:** ![hphillip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/hphillip/32/46261_2.png) [@hphillip](https://www.thethingsnetwork.org/forum/u/hphillip)\
**Post date:** [August 11, 2021, 12:35pm UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/9 "2021-08-11T12:35:08Z")

</div>

Hi @joachim1111 I suspect your hardware is different to mine, but for what it’s worth, the main difference I see looking at my own local\_conf.json is…

```
 "server_address": "eu1.cloud.thethings.network:1881"

```

It was the lack of port number that caused my own gateway not to connect to v3, a problem solved by @kersing

---

<div class="post-metadata">

**Author:** ![joachim1111](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/joachim1111/32/35697_2.png) [@joachim1111](https://www.thethingsnetwork.org/forum/u/joachim1111)\
**Post date:** [August 12, 2021, 7:14am UTC](https://www.thethingsnetwork.org/forum/t/v3-local-conf-json-serv-gw-key-what-value/45753/10 "2021-08-12T07:14:23Z")

</div>

HI,  
I found on a other topic a sulotion. i’ve deleted the local\_conf and adepted the global\_conf with the server key. this worked for me.

thanks!
