# 2 gateways behind 1 router / port 1700?

**URL:** <https://www.thethingsnetwork.org/forum/t/2-gateways-behind-1-router-port-1700/10547>\
**Category:** Gateways\
**Created:** [November 11, 2017, 11:28am UTC](https://www.thethingsnetwork.org/forum/t/2-gateways-behind-1-router-port-1700/10547 "2017-11-11T11:28:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [November 11, 2017, 11:41am UTC](https://www.thethingsnetwork.org/forum/t/2-gateways-behind-1-router-port-1700/10547/2 "2017-11-11T11:41:31Z")

</div>

It seems [Can more than one ic880a gateway run behind a typical home firewall?](https://www.thethingsnetwork.org/forum/t/can-more-than-one-ic880a-gateway-run-behind-a-typical-home-firewall/7113) says all is fine:

> [@Can more than one ic880a gateway run behind a typical home firewall?](https://www.thethingsnetwork.org/forum/t/can-more-than-one-ic880a-gateway-run-behind-a-typical-home-firewall/7113/5):
>
> I know from experience that it works without any issue. I’ve had 3 running behind the same natting firewall without any issues.

And [UDP ports and firewalling](https://www.thethingsnetwork.org/forum/t/udp-ports-and-firewalling/4995) explains:

> [@UDP ports and firewalling](https://www.thethingsnetwork.org/forum/t/udp-ports-and-firewalling/4995/3):
>
> the client (gateway) sends UDP packets from a random client side port to server side port 1700 of the TTN server, and the server sends from server side port 1700 back to the previously used random client port on the client (gateway) side

So, it seems you don’t need to (or: **should not** ) set up any port forwarding at all; the Semtech UDP protocol should already fix this by opening connections, assuming these do not time out ~~(and do not happen to choose the same random port numbers…)~~ and then NAT will just take care of everything.

And indeed, I’ve been using two gateways using a FRITZ!Box 7360, without configuring anything (only one was receiving commands from TTN, but that was handled by the router automatically).

If UDP does not work for you, then maybe using the “new” TTN packet forwarder protocol, which is using TCP/IP, might fix this. (Even when using that on both gateways.)

> [@Verkehrsrot](#):
>
> wondering why one gateway does not receive downlink data

Note that TTN will select only one gateway for downlinks. It might also detect single-channel gateways that do not support downlinks, and then discard those.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/2-gateways-behind-1-router-port-1700/10547)._
