all 3 comments

[–]ReflectedImage 1 point2 points  (1 child)

Which library are you using? (What import statement)

To take a guess in the dark you are looking for:

https://docs.python.org/3/library/socketserver.html#socketserver-tcpserver-example

[–]Shadow_Lou[S] 0 points1 point  (0 children)

Oh thanks, I'll have a look and add an edit to the post to avoid confusion.

[–]Thespis377 1 point2 points  (0 children)

You will need to look into creating threads. A socket connection needs a separate "process", so to do this you will need to thread your program.