Require host and port in put.
Fixed missing endpoint.
Require host and port.
Fixed paths and corrected usages.