# Gateway only forwards packets if connected to mobile data

**URL:** <https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967>\
**Category:** Raspberry Pi Gateways\
**Created:** [November 6, 2021, 8:52am UTC](https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967 "2021-11-06T08:52:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampasia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sampasia/32/35697_2.png) [@sampasia](https://www.thethingsnetwork.org/forum/u/sampasia)\
**Post date:** [November 6, 2021, 8:52am UTC](https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967/1 "2021-11-06T08:52:16Z")

</div>

Hello, I have a RAK7246 gateway but it does not send packets if it is connected to my home’s router. I am sure that it is connected to the internet because I was able to ping it from my laptop. However, the nodes won’t connect via OTAA. The gateway used to work fine before but now it only works when I connect it to my mobile data. I tried to change my router’s DNS to Google DNS and even reset it multiple times. Any suggestions on how to fix this?

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [November 6, 2021, 3:44pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967/2 "2021-11-06T15:44:14Z")

</div>

Have you checked the latency back into the internet?

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [November 6, 2021, 5:31pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967/3 "2021-11-06T17:31:44Z")

</div>

Also check if your ISP is blocking some ports - not unknown for ISP’s to block e.g. port 1700 used for UDP PF - sometimes changing policy in same network/segment - works one month off the next - if so complain and tell them its not their job to sensor the internet! 😉 (Some use excuse that ports may be used for PC sharing software - often used by nefarious types to phish/hi-jack users PC’s so they claim its for ‘their users protection’!.. (VM in UK were regular offenders in UK a few years back…)

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [November 6, 2021, 6:19pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967/4 "2021-11-06T18:19:10Z")

</div>

> [@sampasia](#):
>
> Hello, I have a RAK7246 gateway but it does not send packets if it is connected to my home’s router. I am sure that it is connected to the internet because I was able to ping it from my laptop.

First thing is to get into a shell on the box, via a serial UART or ssh or similar.

Then some of what you want to check is if you can ping _out_ to things on the Internet, eg does

`ping 8.8.8.8` let you bounce a packet off google’s DNS server?

If not, you may want to do `ifconfig` (might in some setups need sudo) to see what address your active interfaces have

And then `route -n` to make sure that the one that’s actually active is listed as a route to everything (0.0.0.0) and with an appropriate IP gateway, and has the lowest metric.

Sometimes multiple network setups leave you trying to route all traffic through an interface that’s no longer active, either because it’s the only global route entered, or has a lower metric than the one that is active.

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [November 6, 2021, 7:42pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967/5 "2021-11-06T19:42:03Z")

</div>

Here are 3 good place to ping to, to see your latency, as TTN is deployed on AWS.

[https://cloudpingtest.com/aws](https://cloudpingtest.com/aws)  
[https://ping.psa.fun/](https://ping.psa.fun/)  
[https://www.cloudping.cloud/aws](https://www.cloudping.cloud/aws)

---

<div class="post-metadata">

**Author:** ![sampasia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sampasia/32/35697_2.png) [@sampasia](https://www.thethingsnetwork.org/forum/u/sampasia)\
**Post date:** [November 7, 2021, 1:29pm UTC](https://www.thethingsnetwork.org/forum/t/gateway-only-forwards-packets-if-connected-to-mobile-data/52967/6 "2021-11-07T13:29:41Z")

</div>

Hey everyone thanks for replying!

I tried to ping 8.8.8.8 as cslorabox suggested and so far there was no problem with it. I also tried to ping the websites Johan\_Scheepers, and again there was no problem with the ping. However, my gateway still forwards packets if it is only connected to my mobile data. Your replies gave me an idea for a temporary fix. I turned on my mobile hotspot in my laptop to allow the gateway to connect to it. Once connected, I turned on my VPN (Kaspersky) and allowed sharing. This seemed to work fine for me, hopefully, others who have the same problem can see this too. With this, I think that Jeff-UK was on point regarding my ISP blocking some ports. I live in the Philippines so it is very likely to happen.

Thank you all for your help
