Skip to content

Instantly share code, notes, and snippets.

@madwayz
Created August 11, 2019 12:08
Show Gist options
  • Select an option

  • Save madwayz/4e870ea247f34483e150efc37bbd2b67 to your computer and use it in GitHub Desktop.

Select an option

Save madwayz/4e870ea247f34483e150efc37bbd2b67 to your computer and use it in GitHub Desktop.
import socket
ADDRESS = '127.0.0.1'
PORT = '7777'
with socket.socket() as s:
s.connect((ADDRESS, PORT))
data = s.recv(1024)
print(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment