file directory and ip,port argument added