AT+QILPORT AT command is used to set the local port.
AT+QILPORT=<mode>,<port>
AT+QILPORT? TCP:2020 UDP:3030
OK