Setting ports to listen on
Threaded servers ยป Threaded server configuration

Prev:Logging connections
Next:Limiting connections

The insecure slot of a threaded server instance contains an integer, an address specifier, or a sequence of address specifiers. Integer port numbers are interpreted as an inet4/inet6 pair listening on all interfaces for given port number. All other address specifiers are interpreted as per Address specifiers.

The secure slot of a threaded server instance is interpreted in the same manner as the insecure slot, except that secure encrypted connections are then allowed. If this slot is set, the secure-config slot should also be set to a secure-config instance containing SSL server configuration. See Secure socket configuration for details.

Two utility words for producing address specifiers:
local-server ( port -- addrspec )

internet-server ( port -- addrspec )