Implemented hostname argument for client to server connection