Chapter 13— Configuration/Control Commands
144
ip.port
Type: getvar; setvar
This parameter refers to the port number that the TCP and UDP print
service is listening on. You should direct normal TCP communications
from the host to this port.
getvar result
Returns current TCP/UDP port setting.
Example
Description
Syntax
Result
setvar choices
1 to 65535; excluding 20, 21 (used for FTP), 23 (used for telnet), 80
(used for HTTP), and 515 (used for LPD). Default = 6101
Example
Description
Syntax
Result
ip.remote
Type: getvar; setvar
This parameter refers to the remote server address or name.
getvar result
Returns the current remote server address or name.
Example
Description
Syntax
Result
setvar choices
Any IP address or name up to 39 characters long. Default = 0.0.0.0
Example
Description
Syntax
Result
ip.smtp.enable
Type: getvar; setvar
This parameter refers to the SMTP protocol.
getvar result
Returns the status of the SMTP protocol (on or off).
Example
Description
Syntax
Result
setvar choices
on, off. Default = on
Example
Description
Syntax
Result
EasyCoder PL-Series Printer Programmer's Reference Manual
Get the TCP/UDP port number.
! U1 getvar "ip.port"
"6101"
Instructs the printer to set the TCP/UDP port number
to 6102.
! U1 setvar "ip.port" "6102"
Changes the TCP/UDP listening port to 6102.
Get the currently stored remote server address or name.
! U1 getvar "ip.remote"
"0.0.0.0"
Set the remote IP address to 10.14.4.235.
! U1 setvar "ip.remote" "10.14.4.235"
Changes the remote server to 10.14.4.235.
Get the SMTP setting.
! U1 getvar "ip.smtp.enable"
"off"
Enable the SMTP protocol.
! U1 setvar "ip.smtp.enable" "on"
Turns on the SMTP protocol in the printer.