If no DHCP server is found, auto assign a random IP in a subnet like 192.168.0.*, then test if the IP is already present in the network. If present assign a new random IP and test again until the IP is not taken. Then start advertising the object with the new IP