

#!/usr/bin/env python3

import socket
test = '192.168.10.14'
HOST = '127.0.0.1'  # The server's hostname or IP address
PORT = 4001        # The port used by the server

a=1
for x in range(10):
    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
        s.connect((test, PORT))
        s.sendall(b'sending-test') 
        for i in range(10):
            data = s.recv(1024).decode('utf-8')
            print('Received', data) 



