title: How to obtain user's public IPv4 address using WebRTC?
body: <p>I tried many different codes, But all of them only returned local IP address of the user. (e.g. 192.168.1.2).</p>
  
  <p>How may I obtain user's public IPv4 address using WebRTC? (e.g. 104.200.21.83)</p>
  
  <p>I know <strong>it's possible</strong>  because a <a href="https://www.expressvpn.com/webrtc-leak-test" rel="nofollow noreferrer">website</a> could show my leaked public IPv4 address even when I used VPN.</p>