Listener syntax

Description
Resources that define listeners, such as httpd and scriptPort, use a common syntax to define the address and port to listen on. It is also used by the callback resource to define an address and port to connect to.

Syntax
The syntax of is:
 * [address]:port


 * address
 * An optional numeric address to listen on. The default is . If an IPv6 address is used, it must be surrounded by square brackets, e.g.,  . The value   specifies any IPv4 address.


 * port
 * The TCP port to listen on.

Examples
Listen for connections on 127.0.0.1, port 8080. :8080 Listen for connections on any IPv4 address, port 8081. *:8081 Listen for connections on 1.2.3.4, port 8050. 1.2.3.4:8050 Listen for connections on IPv6 address ::1, port 8040. [::1]:8040