-h flag fixed
obtain outgoing connection improve