Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- import time
- network = '10.10.10.179'
- port = 8080
- clisocket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
- print(network)
- print(port)
- clisocket.connect((network,port))
- print("connected...")
- time.sleep(1)
- while True:
- input_value = input("input data : ")
- data_bytes = input_value.encode('utf-8')
- clisocket.sendall(data_bytes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement