I used Socat and Netcat to listen on those port (10000 till port 19000 ) using loop.
Unfortunately, the server was suddenly hung after opening so many ports
The Netcat script as follows :
first_port=10000
last_port=19000
for (( i = first_port+1; i <= last_port; i++ )) do
ncat -l -k -p $i...