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

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

Description
The FindRemoteIPStrByLocalPort 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 remote 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,  
FindLocalIPStrByLocalPort, FindLocalIPStrByRemotePort and FindRemoteIPStrByRemotePort methods.