Skip to content

WAN Commands

github-actions[bot] edited this page Jun 15, 2026 · 1 revision

WAN Commands

Generated from FlexLib v4.2.18

Wide Area Network remote access


Wire Protocol

Commands follow the FlexRadio TCP wire protocol:

C[D]<seq_number>|<command> [sub-command] [parameters]

Where:

  • C = Command prefix
  • D = Optional debug flag
  • <seq_number> = Sequence number for command tracking
  • <command> = Primary command word
  • [sub-command] = Optional sub-command
  • [parameters] = Command-specific parameters

Responses follow the format:

R<seq_number>|<result_code>|<data>|[debug_info]

Where:

  • R = Response prefix
  • <seq_number> = Matching sequence number from command
  • <result_code> = Result code (0 = success, non-zero = error)
  • <data> = Command-specific response data
  • [debug_info] = Optional debug information

Common Response Codes

Code Meaning
0 Success
50000001 Unable to get foundation receiver assignment
50000003 License check failed
50000004 Parameter error
50000005 Incorrect number or type of parameters
50000016 Malformed command
5000002C Incorrect number of parameters
50000032 Bad mode

Commands

wan register owner_token=...

Syntax:

C<seq>|wan register owner_token=<owner_token>

Parameters:

Parameter Description
<owner_token>

Response Example:

R<seq>|0||

wan unregister owner_token=...

Syntax:

C<seq>|wan unregister owner_token=<owner_token>

Parameters:

Parameter Description
<owner_token>

Response Example:

R<seq>|0||

wan set public_tls_port=... public_udp_port=...

Wan Set Forwarded Ports

Syntax:

C<seq>|wan set public_tls_port=<tcpport> public_udp_port=<udpport>

Parameters:

Parameter Description
<tcpport>
<udpport>

Response Example:

R<seq>|0||

wan set public_tls_port=-1 public_udp_port=-1

Wan Set Forwarded Ports

Syntax:

C<seq>|wan set public_tls_port=-1 public_udp_port=-1

Response Example:

R<seq>|0||

wan validate handle=...

Creates a TCP client and connects to the radio

Syntax:

C<seq>|wan validate handle=<wanconnectionhandle>

Parameters:

Parameter Description
<wanconnectionhandle>

Response Example:

R<seq>|0||

Clone this wiki locally