Created
January 21, 2020 13:11
-
-
Save BMU-Verlag/d522aedd08e5de8ab29c5eb35df01d47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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