import socket

host = socket.gethostname()
port = 4444

soc_ = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
soc_.bind((host, port))
soc_.listen(1)

print("\n server started")

conn, addr = soc_.accept()

print("collection estlablish with", str(addr))

message = "\n thakyou for connecting "+str(addr)

conn.send(message.encode("ascii"))
conn.close()
