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

Declaration
function FindLocalIPStrByRemotePort(RemotePort: Word; Proto: TacConnectionProto = pAny): String;  

Description
The FindLocalIPStrByRemotePort method searches for the connection where the remote port is the same as specified in RemotePort 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 RemotePort doesn't exists.  

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