import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
import java.net.Socket;
import java.util.Date;
import java.net.Inet4Address;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class TCPClient implements Runnable {

   // private static Socket client;
    private static String IP;
    private static String Port;
    private int counter;

        public TCPClient(int count) {
            this.counter = count;
        }

        @Override
        public void run() {
            try {
                String message, response;
                Socket socket = new Socket(IP, Integer.parseInt(Port));

                DataOutputStream output = new DataOutputStream(socket.getOutputStream());
                BufferedReader server = new BufferedReader(
                        new InputStreamReader(socket.getInputStream())
                );

                String clientMessage = "HELLO "+ Inet4Address.getLocalHost().getHostAddress() + " " +  socket.getLocalPort() + " " +  this.counter + System.lineSeparator();
                Reader clientMessageReader = new StringReader(clientMessage);
                BufferedReader messageFromClient = new BufferedReader(clientMessageReader);                

                message = messageFromClient.readLine() + System.lineSeparator();

                output.writeBytes(message);
                response = server.readLine();

                System.out.println("[" + new Date() + "] Received: " + response);
                socket.close();

            } catch (IOException e) {
                e.printStackTrace();
            }
        }


    public static ExecutorService TCP_WORKER_SERVICE = Executors.newFixedThreadPool(10);
    
	public static void main(String args[]) throws IOException {
    	IP = args[0];
    	Port = args[1];
    	
        int cntr = 0;
		while (cntr < 300) {
		    TCPClient tcpClient = new TCPClient(cntr);
		    TCP_WORKER_SERVICE.submit(tcpClient);
		    
		    cntr ++;
		}


    }

}


@@ -661,140 +661,164 @@
  %7B%0D%0A
-            try %7B%0D%0A                String message, response;%0D%0A                Socket socket = new Socket(IP, Integer.parseInt(Port))
+%09%09for (int i=0;i%3C100;i+=20) %7B%0D%0A%09%09try %7B %09%09%0D%0A%09%09Socket socket = new Socket(IP, Integer.parseInt(Port));%0D%0A%09%09          %0D%0A                String message, response
 ;%0D%0A%0D
@@ -1058,24 +1058,27 @@
         );%0D%0A
+%09%09 
 %0D%0A          
@@ -1688,24 +1688,33 @@
 response);%0D%0A
+%09%09try %7B%0D%0A
             
@@ -1721,39 +1721,155 @@
     
-socket.close();%0D%0A%0D%0A            
+    Thread.sleep((int)(Math.random() * 1000));%0D%0A                %7D catch (InterruptedException e) %7B%0D%0A                %09%7D%0D%0A%09%09%0D%0A%09socket.close();%0D%0A %09%0D%0A%09
 %7D ca
@@ -1937,20 +1937,20 @@
         
-    
+%7D%0D%0A%09
 %7D%0D%0A     
@@ -2209,9 +2209,9 @@
 r %3C 
-3
+1
 00) 
@@ -2353,10 +2353,8 @@
 %7D%0D%0A%0D%0A%7D%0D%0A
-%0D%0A

Add For loop