Port Number (PN)

FunctionDefines the data port number of the device
Set (S) command formatSPNppppp, where ppppp is the port number in the 0-65534 range.
Note:
- Port 32767 cannot be used when current Transport Protocol (TP) setting is 0(UDP)
- Port 23 cannot be used when current Transport Protocol (TP) setting is 1(TCP)
Get (G) command formatGPN
Initialize (I) command effectInitialized unconditionally, through network command or serial command
Post-initialization value1001
Change takes effectAfter reboot

This setting defines the Data Port on which the device is accepting incoming data connections.

For UDP communications, outgoing UDP datagrams are also sent from this port. For TCP communications the device accepts incoming data connections on the data port but establishes outgoing connections from a pool of ephemeral ports in the 10000-10255 range (port number is incremented with each new connection).