I've spent some time looking at different answers, and the best I've found was this response from a different SO question.
The issue is that this returns an mDNS string, like so:
abcd1234-1e1e-1e1e-1e1e-abcd1a2bc3de.local
I have a legitimate use case for this feature, and I've tried finding answers or libraries that are capable of decoding this string, such as webrtc-ips, but this package returns an empty array for me.
Has anyone been able to figure out a way to do this without a third-party, like api.ipify or similar services?