Darryl L. Miles's patch to support an optional port number argument