Is it possible to get a user's IP address by decoding the mDNS string received with the help of webRTC?

Solution 1:

The design purpose of these mdns strings is that you can not decode them outside the local network.

If you have a legitimate use-case you can explain it in https://github.com/w3c/webrtc-extensions/issues/87 which discusses asking for permission to expose IP addresses without the current workaround to ask for camera permissions.