Skip to content

Instantly share code, notes, and snippets.

@ibigbug
Created January 5, 2017 14:13
Show Gist options
  • Save ibigbug/3bdfc07fff9bf9014fbe86dfccdb50b4 to your computer and use it in GitHub Desktop.
Save ibigbug/3bdfc07fff9bf9014fbe86dfccdb50b4 to your computer and use it in GitHub Desktop.
import socket
HOST = ''
PORT = 9999
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((HOST, PORT))
s.listen(1)
while 1:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment