import socket

serversocket = socket.socket(socket.AF_NET, socket.SOCK_STREAM)

host = socket.gethostbyname()
port = 444

serversocket.bind(("192.168.1.104", port))

serversocket.listen(3)

while True:
    clientsocket, address = serversocket.accept()

    print("received connection from %s " % str(address))

    message = "thank you for connecting to the server" + "\r\n"
    clientsocket.send(message.encode("ascii"))

    clientsocket.close()
