connect & http: support -4 and -6 switches for remote operations