@ADDIPPORT — Create a TCP/IP printing port on the local machine.

Syntax:
%@ADDIPPORT[address,queue]

addressmost often a static IP, but you may use a hostname instead
queuethe queue name for an LPR port

The address parameter is required.

The new port will be created on the local machine. The new IP port will be a raw TCP port unless queue is specified, in which case an LPR port will be created. If you need to specify a TCP port number, append it to the IP address with a colon, e.g. 192.168.10.24:9101.

This function returns the name of the newly created port, or ??? if an error occurred.

set port=%@addipport[192.168.0.16]