Thank you, that will help me a lot.
But I can't use localhost as the client is on my laptop and the server is on my desktop. Also, which IP address will I connect to? 192.168.###.### or the actually random one ###.###.###.###)?
3. Might as well hard-code it in, but that will ruin my plans on publishing this software for public usage.