Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xjine/unity_ipaddressutil
- Owner: XJINE
- License: bsd-3-clause
- Created: 2024-03-01T06:38:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-01T12:42:23.000Z (10 months ago)
- Last Synced: 2024-03-20T20:12:35.052Z (10 months ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```