A simple CLI tool for testing network connections on macOS. Uses tools already included with your Mac.
Replace <address> and <port> (optional) with the values you want to test.
./network-test <address> <port>- In Finder, open
network-test.command(a Terminal window will open) - Follow the prompts (address and optional port)
Note: Some servers ignore ping, so a failed ping does not always mean the connection is broken.
Tests are stored in tests/. Python 3.8 or newer is required to run them. The tests make no outside network connections.
python3 -m unittest discover -s tests -v