wiktortokumpel
Nov 13th, 2025
13
0
Never
This is comment for paste chuh
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import socket
  2.  
  3. IP = "192.168.1.100" # IP komputera z recorder.py
  4. PORT = 5000
  5.  
  6. code = input("Podaj kod części: ")
  7.  
  8. with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
  9. s.connect((IP, PORT))
  10. s.sendall((code + "\n").encode("utf-8"))
  11.  
  12. print("Wysłano.")
Advertisement
Add Comment
Please, Sign In to add comment