How to get IP addresses of all devices in local network with Unity UNET in C#?
<p>everyone!</p>

<p>I have a lot of devices in one local network. How can I get ip addresses of all these devices?</p>

<p>I want to do something like this:</p>

<pre><code>using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Tools : MonoBehaviour {

    //get local ip address
    public string getIP() {

        string IP = "";

        IP = Network.player.ipAddress;

        return IP;
    }

    //get all ip addresses in local network
    public List&lt;string&gt; getIPArray() {

        List&lt;string&gt; listIP = new List&lt;string&gt;();


        return listIP;
    }
}
</code></pre>