UDP::server_port

Description

Returns the UDP port/service number of the server. This command is equivalent to the command serverside { UDP::remote_port }.

Syntax

UDP::server_port

UDP::server_port

  • Returns the UDP port/service number of the server.

Examples

when SERVER_CONNECTED {
   set client [IP::client_addr]:[UDP::client_port]
   set node [IP::server_addr]:[UDP::server_port]
   log local0. "client: $client, server: $server"
}