Add support for alternate port numbers, default hostname of localhost, and alternate host names.