Add code to generate ID automatically, when missing, from host, port