get host/port without silly matching regex