With Netcat
-z: Port scanner mode (zero I/O mode); only listening services are scanned (no data is sent)
-v: Extensive output (e.g. responsible for the display and scope of displayed fault messages)
nc -z -v [Destination IP] [port]
Sources and useful links
https://www.ionos.com/digitalguide/server/tools/netcat/