A quick reference for using netcat (`nc`) to test network connectivity between two hosts. Start a listener with `nc -l -p 9999` and connect to it with `nc <listener-host> 9999`. Works with Docker Compose container names as hostnames or localhost for same-host testing.
3.1K Impressions