InetAddress.getHostByName("metalab.unc.edu")
should
be InetAddress.getByName("metalab.unc.edu")
. That is,
try {
ServerSocket httpd = new ServerSocket(5776, 100,
InetAddress.getByName("metalab.unc.edu"));
}
catch (IOException e) {
System.err.println(e);
}
p. 385: About three quarters of the way down the page, at the end of the second code block,
} // end try
should be
} // end if
That is, change try
to if
in the comment.