Understanding how the structures work and getting IP addresses. Test program copied from Beej's network tutorial