Horje
get current computer ipv4 C# Code Example
get current computer ipv4 C#
public static string GetLocalIPAddress()
{
    var host = Dns.GetHostEntry(Dns.GetHostName());
    foreach (var ip in host.AddressList)
    {
        if (ip.AddressFamily == AddressFamily.InterNetwork)
        {
            return ip.ToString();
        }
    }
    throw new Exception("No network adapters with an IPv4 address in the system!");
}




Csharp

Related
c# input integer Code Example c# input integer Code Example
Dark Souls Code Example Dark Souls Code Example
open scene unity Code Example open scene unity Code Example
how to change scenes on collision unity Code Example how to change scenes on collision unity Code Example
c# get pc ip address Code Example c# get pc ip address Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11