Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bind to Specific IP
Starting with version 1.1, it is possible to specify a single numeric IPv6 or IPv4 address along with the usual port number for PortFusion server sockets.
This extension uses the
AddrPort data structure and can be used at the following places in command line segments:
] A [ # A: AddrPort p h - p h [ A # p: Port A ] h p - h p # h: Host A ] - h p
AddrPort → Port | IP:Port
IP is provided in an
[::] is used for
IPv4 to listen on all addresses.
|Listen||all IPs||one IP|
¹ except on Windows XP (no dual stack IP) and FreeBSD
² non-standard syntax allowed for consistency and the shell on FreeBSD
This feature was implemented as an answer to a question by a commercial PortFusion user.