DiscoveryFindServerAddress(Boolean) Method
Finds IP address belonging to a LAN on which to run a TCP server.
Namespace: KLib.NetAssembly: KLib.Net (in KLib.Net.dll) Version: 1.0.0.0 (1.0.0.0)
public static string FindServerAddress(
bool canUseLocalhost
)
- canUseLocalhost Boolean
- specifies whether a localhost connection is allowed. Defaults to true.
StringIP address of NIC attached to LAN
Parses ARP table to find a valid LAN address (starting with 169.254 or 11.12.13). Optionally defaults to localhost if no NIC found.