Guest User

Untitled

a guest
Oct 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import socket
  2.  
  3. localip = socket.gethostbyname(socket.gethostname())
  4. sock = socket.socket()
  5. sock.bind((localip,1600))
  6. sock.connect('192.168.56.1',1600)
  7. r = sock.recv(5)
  8.  
  9. print r
Add Comment
Please, Sign In to add comment