I always get these two terms confused. How do you determine which side is the server and which side is the client? Is it determined by whether it's sending or receiving data? (Assuming the connection goes one-way) 

Thank you,