Skip to content
Advertisement

Tag: python-sockets

Unable to transfer file using Sockets on different computers

I recently wrote a code for a file transfer in Python. Sockets connect fine when I connect them from different terminals on the same system. But the same doesn’t seem to work when I connect them from different computers which are connected over the same Wifi network. Here’s the server code: Here’s my client code: When I try to connect

Retrieving unpack requires a buffer of 8 bytes error socket python

I have the following code I am sending the result of intermediate predictions results from the client to server. Client server While running the above code I am facing the below error msg_size = struct.unpack(“Q”, packed_msg_size)[0] struct.error: unpack requires a buffer of 8 bytes Thank you Answer You haven’t sorted out normal end of connection. As mentioned in the comments,

Advertisement