Thank you for pointing out the basics of the basic, this is the first assignment I have attempted on networking. I will now google the basics of networking.
That's the spirit!
You might want to read up about TCP/IP. Dry material, but very helpful knowledge if you want to understand what is going on. Also helps outside of code when you need to deal with setting up network connections, configuring routers, setting up port forwarding, proxy servers, etc. etc.