Changed for loop to reuse the same socket