Skip to content
Snippets Groups Projects
Commit 36acb965 authored by Leendert Hendricus Pruissen's avatar Leendert Hendricus Pruissen
Browse files

Test Client

parent 7fc506cc
No related branches found
No related tags found
No related merge requests found
# Import socket module
import socket
# Create a socket object
s = socket.socket()
# Define the port on which you want to connect
port = 12345
# connect to the server on local computer
s.connect(('127.0.1.1', port))
print("I am here")
# receive data from the server
print(s.recv(1024))
# close the connection
s.close()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment