# Own "The Things Stack" server uplink and downlink ports

**URL:** <https://www.thethingsnetwork.org/forum/t/own-the-things-stack-server-uplink-and-downlink-ports/35299>\
**Category:** The Things Stack v3\
**Created:** [March 12, 2020, 2:50pm UTC](https://www.thethingsnetwork.org/forum/t/own-the-things-stack-server-uplink-and-downlink-ports/35299 "2020-03-12T14:50:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlaski](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mlaski/32/35697_2.png) [@mlaski](https://www.thethingsnetwork.org/forum/u/mlaski)\
**Post date:** [March 12, 2020, 2:50pm UTC](https://www.thethingsnetwork.org/forum/t/own-the-things-stack-server-uplink-and-downlink-ports/35299/1 "2020-03-12T14:50:46Z")

</div>

I have gateway thats correctly working with The Things Network.  
It’s kerlink wirnet iStation.  
To have it connectiont to TTN I had to setup server IP to: 52.169.76.203 and uplink and downlink port to 1700  
Now I’ve created own instance of server using docker container.  
I’ve added new gateway using gateway-id and gateway-EUI.  
I’ve setup server IP to my own.  
AND There is no information about setting up port!!

I see that 1700 is closed. But I have couple of 188x ports. I’ve tryed every one and station still shows disconnected status.

Do I have to install something else to have this magic 1700 port open and receiving connections?

Thanks

---

<div class="post-metadata">

**Author:** ![htdvisser](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htdvisser/32/45312_2.png) [@htdvisser](https://www.thethingsnetwork.org/forum/u/htdvisser)\
**Post date:** [March 13, 2020, 8:20am UTC](https://www.thethingsnetwork.org/forum/t/own-the-things-stack-server-uplink-and-downlink-ports/35299/2 "2020-03-13T08:20:29Z")

</div>

If you deployed The Things Stack by following the getting started guide ([https://www.thethingsindustries.com/docs/getting-started/](https://thethingsstack.io/v3.6.0/guides/getting-started/)), port 1700 should be open.

You may also want to check the guide for connecting a Kerlink Wirnet iStation to The Things Stack ([https://www.thethingsindustries.com/docs/gateways/models/kerlinkwirnetistation/](https://thethingsstack.io/v3.6.0/guides/connecting-gateways/kerlinkwirnetistation/))

> NOTE: The links above point to the documentation of The Things Stack v3.6.0, which is the latest version at time of writing (13 March 2020). Future readers may want to check for newer versions of the documentation.

---

<div class="post-metadata">

**Author:** ![mlaski](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mlaski/32/35697_2.png) [@mlaski](https://www.thethingsnetwork.org/forum/u/mlaski)\
**Post date:** [March 13, 2020, 2:18pm UTC](https://www.thethingsnetwork.org/forum/t/own-the-things-stack-server-uplink-and-downlink-ports/35299/3 "2020-03-13T14:18:14Z")

</div>

Thank you for documentation. Yes I have seen it before and I’ve been using it to install server and configure gateway.

With gateway configuration I was afraid that when I change API key using script provided I will brake what is currently working very well: connection to The Things Network.

Second thing is that when i have registered gateway on The Things Network I didn’t had to change any api keys. I have just provided device EUI, device ID, server ip and port 1700. But my server running from docker doesn’t open 1700 port 😕

$ nmap -p 1-60000 192.168.10.23

Starting Nmap 7.60 ( [https://nmap.org](https://nmap.org) ) at 2020-03-13 15:05 CET  
Nmap scan report for 192.168.10.23  
Host is up (0.00011s latency).  
Not shown: 59985 closed ports  
PORT STATE SERVICE  
22/tcp open ssh  
80/tcp open http  
443/tcp open https  
1881/tcp open ibm-mqseries2  
1882/tcp open ecsqdmn  
1883/tcp open mqtt  
1884/tcp open idmaps  
1885/tcp open vrtstrapserver  
1887/tcp open filex-lport  
8881/tcp open galaxy4d  
8882/tcp open unknown  
8883/tcp open secure-mqtt  
8884/tcp open unknown  
8885/tcp open unknown  
8887/tcp open unknown

That’s why I’m confused. I thought that I need to install additional software to have 1700 port waiting for connections.

Second thing. After changing gateway configuration I have used reboot commant. I think that it wasn’t correct. I should disconnect whole gateway from power and wait fot it to shut down. I have noticed that yesterday after I wanted to restore communication with TTN using original config. It didn’t work after reboot.

Today I’m testing connection again and I think I have connections from gateway in logs but I’m receiving wrong device EUI. Last 4 bytes are set to FFFFFFFF instead of correct eui. First bytes are correct. But I think I’m on good path to make it working 🙂

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [April 11, 2020, 5:17pm UTC](https://www.thethingsnetwork.org/forum/t/own-the-things-stack-server-uplink-and-downlink-ports/35299/4 "2020-04-11T17:17:06Z")

</div>

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