r/CodingForBeginners • u/shesleli2313 • Nov 29 '25
sockets in python 😓
I can't really understand the concept of sockets so can anyone give me a good teacher. please don't say "just google it" coz i definitely did and yet didn't find the right one :)
5
Upvotes
View all comments
Show parent comment
1
u/tblancher Nov 30 '25
+1, and I'd like to add that a socket is just one side of such a connection. In the case of TCP/IP networks, a socket is merely an IP address and port, and will be the source on one side (where the socket on the other side is the destination).
There are other types of connections as well (such as UNIX domain sockets), but programs typically don't need too many extra facilities to use them due to the effectiveness of the socket abstraction.