title: Unity3D WebGL - How can I fetch the IP adress of the current player
body: <p>I need the IP of the users in my WebGL build and I tried to run this code to get it, and it work's fine when executed locally on my pc. But when I post the build on itch.io it produces a wierd error. I tried it both on itch.io and our own server and it produces the same error. I also tried uploading an empty WebGL build and that worked fine. </p>
  
  <p>This build has only one script in the scene and that is to get the ip, and that's the script I pasted below the link.</p>
  
  <p><a href="https://badassss.itch.io/test" rel="nofollow noreferrer">https://badassss.itch.io/test</a></p>
  
  <pre><code>using UnityEngine;
  using System.Net;
  using UnityEngine.UI;
  
  public class WebGLGetIP : MonoBehaviour
  {
      public Text ips;
  
      private void Start()
      {
          FetchIPAdresses();
      }
  
      private void FetchIPAdresses()
      {
          string hostName = Dns.GetHostName();
          IPAddress[] addresses = Dns.GetHostAddresses(hostName);
          Debug.Log($"GetHostAddresses({hostName}) returns:");
          foreach (IPAddress address in addresses)
          {
              string adress = $"    {address}";
              ips.text += "/n" + adress;
          }
      }
  }
  </code></pre>