@@ -2,7 +2,7 @@ import socket | |||
s = socket.socket() | |||
host = socket.gethostname() | |||
host = socket.gethostbyname('localhost') | |||
port = 22225 | |||
s.connect((host, port)) | |||
@@ -18,5 +18,4 @@ while message != 'STOP': | |||
bytes = s.recv(4096) | |||
print(bytes.decode('utf-8')) | |||
else: | |||
print(message) | |||
s.close() |
@@ -1,7 +1,7 @@ | |||
import socket | |||
s = socket.socket() | |||
host = socket.gethostname() | |||
host = socket.gethostbyname('localhost') | |||
port = 22225 | |||
s.bind((host, port)) | |||
s.listen() |