# Connects to WiFi but cannot ping

**URL:** <https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012>\
**Category:** UNO R4 WiFi\
**Created:** [February 12, 2025, 3:32am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012 "2025-02-12T03:32:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![talisman334](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/talisman334/32/1126779_2.png) [@talisman334](https://forum.arduino.cc/u/talisman334)\
**Post date:** [February 12, 2025, 3:32am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/1 "2025-02-12T03:32:23Z")

</div>

Hi, I am testing with the example script WiFiS3 -\> WiFiPing

It connects to my WiFi ok and prints the connection details to the serial monitor. It then tries to ping some remote addresses but each fails with a timeout:

SSID:   
IP Address: 10.0.0.220  
signal strength (RSSI):-74 dBm  
Trying to ping [github.com](http://github.com) on IP: 140.82.121.4  
Timeout on IP!  
Make sure your WiFi firmware version is at least 0.5.0  
Trying to ping host: [www.google.com](http://www.google.com)

I have been through a few iterations with issues like making sure I was connecting to a 2.4Ghz network (thanks ChatGPT for resolving that one). Then trying to update the firmware from inside the IDE which fails every time - eventually managed to get it done manually despite a lot of bad info around on this. Now on latest firmware 0.4.1, but it still doesn't work.

I will try other protocols like HTTP next, but I would really prefer to get ping working as this is meant to replace an existing server monitor app running on a windows server which has been working fine for years using pings but I want to retire it.

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [February 12, 2025, 3:57am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/2 "2025-02-12T03:57:52Z")

</div>

My R4 WiFi was still on 0.4.1 so I took the opportunity to try out the ping example. As I expected, it failed with a timeout. Once I upgraded my firmware to 0.5.0 the example worked fine and was able to ping [github.com](http://github.com) and [www.google.com](http://www.google.com).

---

<div class="post-metadata">

**Author:** ![ledsyn](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ledsyn/32/1203827_2.png) [@ledsyn](https://forum.arduino.cc/u/ledsyn)\
**Post date:** [February 12, 2025, 4:35am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/3 "2025-02-12T04:35:02Z")

</div>

> [@van\_der\_decken](#):
>
> As I expected

How come? Is it just ping or the complete network stack that's borked in 0.4.1?

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [February 12, 2025, 4:41am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/4 "2025-02-12T04:41:21Z")

</div>

> [@ledsyn](#):
>
> Is it just ping or the complete network stack

Just ping.

> [@ledsyn](#):
>
> borked in 0.4.1?

"Borked" implies a broken capability. In this case it was that it had not been implemented yet. A ping capability was added in version 0.5.0 of the firmware:

> <https://github.com/arduino/uno-r4-wifi-usb-bridge/pull/65>
>
> based on esp idf

and in the companion work released in version 1.3.0 of the **Arduino UNO R4 Boards**" platform:

> <https://github.com/arduino/ArduinoCore-renesas/pull/395>
>
> Fixes #251

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [February 12, 2025, 4:54am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/5 "2025-02-12T04:54:18Z")

</div>

As @ptillisch has already pointed out, ping support was added in the 0.5.0 firmware. Which is why I could take the opportunity to try the example out with my board with 0.4.1 firmware, see that it failed as expected (because the firmware didn't support it yet), then upgrade to 0.5.0 (where it was supported) and see that it worked.

Nothing to see here, folks.

---

<div class="post-metadata">

**Author:** ![talisman334](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/talisman334/32/1126779_2.png) [@talisman334](https://forum.arduino.cc/u/talisman334)\
**Post date:** [February 12, 2025, 5:40am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/6 "2025-02-12T05:40:08Z")

</div>

@ptillisch , Thanks very much for testing that, and pointing out there is a later firmware. I had thought I had got the latest when I updated it earlier today. I'll look again...

---

<div class="post-metadata">

**Author:** ![talisman334](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/talisman334/32/1126779_2.png) [@talisman334](https://forum.arduino.cc/u/talisman334)\
**Post date:** [February 12, 2025, 6:18am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/7 "2025-02-12T06:18:01Z")

</div>

@van_der_decken - sorry I tagged the wrong person before. I found the later firmware. In case anyone else needs this, you need the pre-release builds, as the IDE only lists the released builds of which the latest currently is 0.4.1. I downloaded 0.5.1 and manually flashed it. All works great now, thanks for your help.

Trying to ping [github.com](http://github.com) on IP: 140.82.121.4  
Ping response time: 292 ms  
Trying to ping host: [www.google.com](http://www.google.com)  
Ping average response time: 33 ms

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [February 12, 2025, 6:28am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/8 "2025-02-12T06:28:24Z")

</div>

> [@talisman334](#):
>
> IP Address: 10.0.0.220

Hmm... Looks odd for a local IP address from your router. What IP addresses do other WiFi clients like phones & laptops have on your network?

---

<div class="post-metadata">

**Author:** ![talisman334](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/talisman334/32/1126779_2.png) [@talisman334](https://forum.arduino.cc/u/talisman334)\
**Post date:** [February 12, 2025, 6:39am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/9 "2025-02-12T06:39:33Z")

</div>

@PaulRB , It's fine - I have always used that 10.0.0.0/8. Apart from less typing it's a historical thing because my first office server was MS Small Business Server which was based on Windows NT 3.51. Incidentally I still use that server running in a VM and upgraded to Windows NT4 lol. Not connected to the net of course. I have other routers for phones etc using other local address ranges like 192.168.

---

<div class="post-metadata">

**Author:** ![sh2o](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sh2o/32/1126831_2.png) [@sh2o](https://forum.arduino.cc/u/sh2o)\
**Post date:** [February 17, 2025, 4:58am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/10 "2025-02-17T04:58:27Z")

</div>

Hi, where and how do you get 0.5.1 since the IDE only shows 0.4.1? I can't find it on GitHub. I need to use ping on my new Rev 4, like I do on my Rev 2 boards! Thanks!

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [February 17, 2025, 5:02am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/11 "2025-02-17T05:02:07Z")

</div>

> **[Releases · arduino/uno-r4-wifi-usb-bridge](https://github.com/arduino/uno-r4-wifi-usb-bridge/releases)**
>
> Contribute to arduino/uno-r4-wifi-usb-bridge development by creating an account on GitHub.

And it's up to 0.5.2 now.

---

<div class="post-metadata">

**Author:** ![sh2o](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sh2o/32/1126831_2.png) [@sh2o](https://forum.arduino.cc/u/sh2o)\
**Post date:** [February 17, 2025, 5:30am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/12 "2025-02-17T05:30:39Z")

</div>

Thank you very much. I have not used GitHub yet, so it's going to be a learning curve. I will start tomorrow, lol !

---

<div class="post-metadata">

**Author:** ![sh2o](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sh2o/32/1126831_2.png) [@sh2o](https://forum.arduino.cc/u/sh2o)\
**Post date:** [February 19, 2025, 6:08am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/13 "2025-02-19T06:08:00Z")

</div>

I am getting stuck at the compile step. Using Git Bash, this is the error:  
/arduino/update-firmware (main)  
$ ./compile.sh  
Error during build: Platform 'esp32-patched:esp32' not found: platform not installed  
Platform esp32-patched:esp32 is not found in any known index  
Maybe you need to add a 3rd party URL?

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [February 19, 2025, 6:14am UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/14 "2025-02-19T06:14:12Z")

</div>

Damifino. I do the update manually because there isn't an rPi auto updater.

1. Install esptool.py if not already done (`pip3 install esptool`).
2. Download latest firmware from [Releases · arduino/uno-r4-wifi-usb-bridge · GitHub](https://github.com/arduino/uno-r4-wifi-usb-bridge/releases)
3. Extract the bin file from the firmware subdirectory in the zip.
4. Short bottom left and bottom centre pins on 3x2 header near USB connector before powering on.
5. Remove jumper after applying power.
6. Erase flash with: `esptool.py --chip esp32s3 --port <your port> erase_flash`
7. Write flash with: `esptool.py --chip esp32s3 --port <your port> write_flash -z 0 <extracted file.bin>`

---

<div class="post-metadata">

**Author:** ![sh2o](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sh2o/32/1126831_2.png) [@sh2o](https://forum.arduino.cc/u/sh2o)\
**Post date:** [February 19, 2025, 5:50pm UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/15 "2025-02-19T17:50:34Z")

</div>

> [@van\_der\_decken](#):
>
> pip3 install esptool

I downloaded the firmware and I installed esptool. When I run esptool.py --ch...etc, nothing happens. I looked in the esptool directory, and the esptool.py seems to be an empty file. 02/19/2025 11:23 AM 0 esptool.py

I appreciate the help

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [February 19, 2025, 5:51pm UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/16 "2025-02-19T17:51:29Z")

</div>

That's what works for me. Why it doesn't work you for, I have no idea.

---

<div class="post-metadata">

**Author:** ![sh2o](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sh2o/32/1126831_2.png) [@sh2o](https://forum.arduino.cc/u/sh2o)\
**Post date:** [February 19, 2025, 5:53pm UTC](https://forum.arduino.cc/t/connects-to-wifi-but-cannot-ping/1353012/17 "2025-02-19T17:53:44Z")

</div>

Because I'm a total novice and doing something wrong, lol. At least you taught me how to get the .bin file. So I am really close now....
