#simple client side

import socket

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host = socket.gethostname()
port = 9999

s.connect((host,port))
while True:
    print(s.recv(1024))  #1024 is bufsize or max amount

s.close()
