Ethernet Shield compatible with UNO R4 WiFi?

I just picked up an UNO R4 WiFi. I am in the process up updating my old UNO Telnet Server and have modified the code to build for AVR UNO (flashmem and such) with Ethernet Shield, or the new UNO using WiFi.

I have yet to find my old HiLetgo (? I think ?) Ethernet Shield, and was about to order a new one. The "always accurate" A.I. robot made me paranoid about connections and potential incompatibilities, so I thought I'd ask here:

  1. Will the legacy UNO Ethernet Shields work with the UNO R4 WiFi? It seems to have the SPI header, which I thought was all the shield needed.
  2. I had an W5100 shield. Will existing code for that shield work with W5500 or other variations? I assume the API remains the same.

Thanks for any insight.

The latest version of the official "Ethernet" library has support for the W5500. The library detects the specific Ethernet controller chip in use automagically. As you guessed, the API is the same for all the supported controllers. So code using the Ethernet library that works with the W5100 also works with the W5500, without any changes whatsoever.

Thank you very much. I did not want to order a W5500 shield, get my code working, then not have folks with the older shields be able to use it. Much appreciated.

Are you aware of any shield incompatibilities with the UNO R4 WiFi compared to the old UNO?

I am not aware of any incompatibilities. I haven't found the time to test it myself. Maybe other forum helpers who have used the combination will comment here to describe their findings.