extract host, port