In my opinion you should start by learning how to use sockets, let's say, in C, UNIX (any online tutorial will be suitable, or use "man"). And only after that you can google for language/OS specific libraries and choose whatever you'd like or whatever would fit better your needs.
LE:
You can always test your applications on the same machine.