API NetworkTools - chsxf/mfx GitHub Wiki

NetworkTools Class

chsxf\MFX

final class NetworkTools

Summary

Network management helpers

Since 1.0

Methods

getRemoteIP

public static function getRemoteIP(): string

Retrieves the remote IP address based on the environment variables

Since 1.0

Returns

string the remote IP address or IPv6 localhost if not found