Using multicast DNS to broadcast name of my machine like raspberrpi does

Solution 1:

rPI uses the Avahi application for mDNS. You would need to install that on your devices.