TCP::client_port

Description

Returns the remote TCP port/service number of the clientside TCP connection. This command is equivalent to the TCP::remote_port command in a clientside context, and to the BIG-IP 4.x variable client_port.

Syntax

TCP::client_port

TCP::client_port

  • Returns the remote TCP port/service number of the clientside TCP connection.

Examples

when SERVER_CONNECTED {
   # This logs information about:
   #  *) the clientside part of the client<->LTM connection, and
   #  *) the serverside part of the LTM<->server connection.
   log local0.info "Complete connection: [IP::client_addr]:[TCP::client_port]<->LTM<->[IP::server_addr]:[TCP::server_port]"
}