Learning about networking with Java