Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- sock = socket.socket()
- sock.connect(('192.168.1.171',9970))
- message_from_A = sock.recv(1024)
- message_from_A = message_from_A.decode('utf-8')
- print("Message from A")
- print(message_from_A)
- sock.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement