build_srvid(): also accept addresses with networks