Gaja Priya
Gaja Priya

Reputation: 3

RTCPeerConnection candidates doesn't have a valid IPV4 address instead it has some .local address in it

candidate:4031277258 1 udp 2113937151 fc10cb5a-f63b-4e15-81b5-3b8291facf8f.local 53215 typ host generation 0 network-cost 999

Above you can see the sample of the candidate generated

fc10cb5a-f63b-4e15-81b5-3b8291facf8f.local - How to fetch the IPV4 address from this? Why do I get this?

Upvotes: 0

Views: 916

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17295

This is an mdns hostname which Chrome is returning instead of a private IP these days. See the PSA for details.

You can not resolve it in Javascript.

Upvotes: 2

Related Questions