diafygi / webrtc-ips

Demo: https://diafygi.github.io/webrtc-ips/
MIT License
3.44k stars 598 forks source link

Only showing local IP #33

Closed maheshambiga closed 4 years ago

maheshambiga commented 8 years ago

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.

ghost commented 7 years ago

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

PatSpiegel commented 7 years ago

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

JoyChou93 commented 7 years ago

@PatSpiegel It's not ok.

AJ-Acevedo commented 6 years ago

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

ashwanthkrishna commented 4 years ago

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

maheshambiga commented 4 years ago

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