Added set hostname and port