Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xjine/unity_ipaddressutil

IPAddress utilities mainly for local address.
https://github.com/xjine/unity_ipaddressutil

assets unity

Last synced: 15 days ago
JSON representation

IPAddress utilities mainly for local address.

Awesome Lists containing this project

README

        

# Untiy_IPAddressUtil

IPAddress utilities mainly for local address.

## Importing

You can use Package Manager or import it directly.

```
https://github.com/XJINE/Unity_IPAddressUtil.git?path=Assets/Packages/IPAddressUtil
```

## How to Use

```csharp
public static readonly IPAddress LocalHostAddress = IPAddress.Parse("127.0.0.1");
public static readonly IPAddress LocalLoopbackAddress = LocalHostAddress;

public static IPAddress[] LocalAddresses { get; } = GetLocalAddresses();

public static IPAddress[] GetLocalAddresses()
public static bool HasAddress(string address)
public static bool HasAddress(IPAddress address)
```