fixed URL parser for netcat connectivity checks