Skip to content

Instantly share code, notes, and snippets.

@yagop
Created April 12, 2025 06:55
Show Gist options
  • Save yagop/6a0270da29e39d6333e7bbe420bb94a6 to your computer and use it in GitHub Desktop.
Save yagop/6a0270da29e39d6333e7bbe420bb94a6 to your computer and use it in GitHub Desktop.
Test max connections
#!/bin/bash
for port in `seq 50000 60000`;
do
nc -vw3 192.168.0.1 $port &
done
wait
#!/bin/bash
for port in `seq 50000 60000`;
do
netcat -v -l -p $port &
done
echo "Waiting for clients"
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment