Context
Often the need arises to check if a client (or XDR) is able to connect to an endpoint/destination. This can easily be done with the netcat tool that should be available on most Linux flavors.Method
Run netcat with the destination IP address and port number:
netcat -zv <DESTINATION_IP_ADDRESS> <DESTINATION_PORT_NUMBER>
example:
root@testme-2:/# nc -zv 172.17.0.2 3000 Connection to 172.17.0.2 3000 port [tcp/*] succeeded!
Notes
- Useful when troubleshooting XDR Retry destination errors where connectivity may be at play from source to destination