pinging a server from Arduino

Hello,
I am a bit of a newbe with Arduino.
I am using an Arduino UNO with an Ethernet Shield 2.

I need to check if a server at a fixed IP address is online by pinging it (alternatively checking that a TCP port is open).
Is there an easy way to do it?
I am checking the Ethernet library but it looks like it doesn't have a lot of IP support.

Is there an additional library that I could use?

Cheers
Luca

I tried to look for libraries supporting ICMP Ping. The only library that I could find is the Arduino Ping at GitHub - BlakeFoster/Arduino-Ping: ICMP ping library for the Arduino

Unfortunately this library is not compatible with the latest Ethernet libraries. Is there an alternative?