setting ip and port