Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created January 21, 2020 13:11
Show Gist options
  • Save BMU-Verlag/d522aedd08e5de8ab29c5eb35df01d47 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/d522aedd08e5de8ab29c5eb35df01d47 to your computer and use it in GitHub Desktop.
import socket
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.bind((socket.gethostname(), 5555))
server_socket.listen(5)
print (f'Listeing on {socket.gethostname()}:5555')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment