We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c8509 commit 0965a28Copy full SHA for 0965a28
04/client.py
@@ -1,7 +1,7 @@
1
import socket
2
3
sock_ = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
4
-sock_.connect((socket.gethostname(),9337))
+sock_.connect(("localhost",9337))
5
msg = sock_.recv(1024)
6
sock_.close()
7
print(msg.decode("ascii"))
04/server.py
@@ -1,6 +1,6 @@
-host = socket.gethostname()
+host = "localhost"
port = 9337
@@ -15,4 +15,4 @@
15
16
message = "\nThank you for connecting "+str(addr)
17
conn.send(message.encode("ascii"))
18
-conn.close()
+conn.close()
0 commit comments