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

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

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