Unity IP Address Notifier by XJINE - 55

Games & Projects

IPAddressNotifier provides simple Observer pattern logic to notify local IPAddresses.

Unity 2019.3.5f1BSD 3-Clause "New" or "Revised" LicenseUpdated 19 days agoCreated on June 19th, 2020
Go to source

Unity_IPAddressNotifier

IPAddressNotifier provides simple Observer pattern logic to notify local IPAddresses.

Import to Your Project

You can import this asset from UnityPackage.

How to Use

Add some observers from Inspector and call the Notify to notify IPAddresses.

Some filter settings are used to ignore the notify.

Ex. when the FilterIPv4 shows true, these handlers are not received IPv4 address notify.

Ex. when the FilterStartsWith shows 10.21, some address like 10.21.0.1, 10.21.0.2 and any others are filtered.

public void IPAddressEventHandler(IPAddress address)
{
    Debug.Log(address);
}

Observer’s handler gets the address as args.

Show all projects by XJINE