# Gateways on wifi regularly offline

**URL:** https://f.ruuvi.com/t/gateways-on-wifi-regularly-offline/6938
**Category:** 🇬🇧 Ruuvi Gateway router
**Created:** [20 December 2024 08:45 UTC](https://f.ruuvi.com/t/gateways-on-wifi-regularly-offline/6938 "2024-12-20T08:45:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gouwzee](https://f.ruuvi.com/user_avatar/f.ruuvi.com/gouwzee/32/2345_2.png) [@gouwzee](https://f.ruuvi.com/u/gouwzee)
#### Post date: [20 December 2024 08:45 UTC](https://f.ruuvi.com/t/gateways-on-wifi-regularly-offline/6938/1 "2024-12-20T08:45:45Z")

</div>

Hi all,  
I have an office with 4 gateways. Two was enough, but ever since our wifi access points were updated, the gateways regularly are offline for an hour or more. It appears as if the DHCP lease expires and the gateway fails to renegotiate a new connection. I believe the normally green LED is blinking red during the event.  
I have somewhat hacked a solution by simply adding some more gateways for the time being.  
Anyone know a better solution. My IT department is not very forthcoming if it comes to whitelisting the devices or other solutions like a static IP or permanent lease.

---

<div class="post-metadata">

### Author: ![otso](https://f.ruuvi.com/user_avatar/f.ruuvi.com/otso/32/1651_2.png) [@otso](https://f.ruuvi.com/u/otso)
#### Post date: [20 December 2024 13:17 UTC](https://f.ruuvi.com/t/gateways-on-wifi-regularly-offline/6938/2 "2024-12-20T13:17:30Z")

</div>

Can the WiFi drop off be triggered by renewing DHCP lease with a new IP?

@Alexey ^ pinging you here

---

<div class="post-metadata">

### Author: ![Alexey](https://f.ruuvi.com/user_avatar/f.ruuvi.com/alexey/32/2958_2.png) [@Alexey](https://f.ruuvi.com/u/Alexey)
#### Post date: [22 December 2024 17:18 UTC](https://f.ruuvi.com/t/gateways-on-wifi-regularly-offline/6938/3 "2024-12-22T17:18:11Z")

</div>

Hi @gouwzee, I tested how DHCP lease expiration is handled and found no issues. The gateway just gets a new IP and establishes connections with this new IP.  
It would be very helpful if you could connect one of the gateways to a computer via USB and use a serial port monitor to record the gateway’s log.

---

<div class="post-metadata">

### Author: ![gouwzee](https://f.ruuvi.com/user_avatar/f.ruuvi.com/gouwzee/32/2345_2.png) [@gouwzee](https://f.ruuvi.com/u/gouwzee)
#### Post date: [4 February 2025 20:40 UTC](https://f.ruuvi.com/t/gateways-on-wifi-regularly-offline/6938/4 "2025-02-04T20:40:53Z")

</div>

That is interesting! I didn’t know of that feature. Can I download a log or is it a streaming log? Is there a manual somewhere how to do this?

---

<div class="post-metadata">

### Author: ![Marko](https://f.ruuvi.com/user_avatar/f.ruuvi.com/marko/32/3071_2.png) [@Marko](https://f.ruuvi.com/u/Marko)
#### Post date: [5 February 2025 00:54 UTC](https://f.ruuvi.com/t/gateways-on-wifi-regularly-offline/6938/5 "2025-02-05T00:54:04Z")

</div>

Hey @gouwzee ,

Yes, we have a Python script available in our GitHub repository that allows you to record log.

1. First, make sure you have Python 3 installed on your computer, if not download and install from [Download Python | Python.org](https://www.python.org/downloads/)
2. Download file “ruuvi\_gw\_log.py” from [ruuvi.gateway\_esp.c/scripts at master · ruuvi/ruuvi.gateway\_esp.c · GitHub](https://github.com/ruuvi/ruuvi.gateway_esp.c/tree/master/scripts) to your computer.
3. Connect Ruuvi Gateway to your computer with USB cable.
4. Open terminal and run the script with command “python3 ruuvi\_gw\_log.py”
