Split up the host and port in the constructor. Evidently Net::HTTP wants it that way. Thanks, documentation!