ssdp discovery of upnp devices using multicast sockets

i am trying to discover UPnP devices in the network using multicast sockets however, I seem to be getting the same device multiple times. What is the issue with the discovery code here. The result...