connectionlist FindLocalIPStrByLocalPort method
Return to Introduction  Previous page  Next page
Applies to
acConnectionList component.  

function FindLocalIPStrByLocalPort(LocalPort: Word; Proto: TacConnectionProto = pAny): String;  

The FindLocalIPStrByLocalPort method searches for the connection where the local port is the same as specified in LocalPort parameter and protocol is the same as specified in Proto parameter (or returns any connection, either TCP or UDP, if Proto is pAny).  
Function returns the local IP address of connection (if such connection found in internal list), or empty string if connection with specified LocalPort doesn't exists.  

See also
FindConnectionByLocalPort, FindConnectionByRemotePort, FindConnectionByLocalIPStr, FindConnectionByRemoteIPStr,  
FindLocalIPStrByRemotePort, FindRemoteIPStrByLocalPort and FindRemoteIPStrByRemotePort methods.