diafygi/webrtc-ips

Only showing local IP

maheshambiga opened this issue ยท 6 comments

The demo does not seem to display public IP and IPv4/IPv6. It only displays local IP. When I looked into the code, came across if conditions and RegEx. This will eventually end up showing one IP at a time. Not much of use.
I am looking for a way to find users public as well as local IP.

Issue not resolved yet : i have the same issue on Windows 10 running Google Chrome 59.0.3071.115 (Official Build) (64-bit)

use another server
example: var servers = {iceServers: [{urls: "stun:stun.l.google.com:19302?transport=udp"}]};

@PatSpiegel It's not ok.

Changing the server works
var servers = {iceServers: [{urls: "stun:stun.l.google.com:19302?transport=udp"}]};

How to run this code.cant able to get public IP address.Can anyone help me please???

Closing this issue as majority of users have agreed it works with alternative server urls