FatEcto.Utils.Network (FatEcto v1.1.0)

View Source

Provides utility functions for working with network-related tasks.

This module includes functions for retrieving local network addresses.

Summary

Functions

Retrieves the local network address.

Functions

local_address()

@spec local_address() :: String.t() | nil

Retrieves the local network address.

Examples

iex> FatEcto.Utils.Network.local_address()
"192.168.1.100"

Returns

  • A string representing the local network address, or nil if the address cannot be determined.