#
# The <server port> is the port that other servers can connect to.
# Client ports need to be specified with a P: line, see below.
+# Note that P: lines can still be used to override the address
+# that a server port is bound to, use the <server port> of the M:
+# line in that case on the P: line.
#
# Note that <server numeric> has to be unique on the network your server
# is running on, must be between 1 and 64, and is not updated on a rehash.
# is located behind a firewall, you may want to make another hole in it
# for this port.
#
-# P:<hostmask, or path>:::<client port number>
+# P:<ipmask, or path>:[<interface>|*]::<client port number>
+#
+# or
+#
+# P:<ipmask, or path>:[<interface>|*]::<server port>
+#
+# where <server port> is the port specified on the M: line.
+#
+# Listen on port 6667 and 6668, use the default interface
+# (that is: the interface specified on the commandline with
+# -w <interface IP#>, or the interface of the IP# that the
+# M: line resolves too (or ALL interfaces if it doesn't
+# resolve)).
P::::6667
P::::6668
-P:*.nl:::6666
+# Only accept clients from 168.* on port 6666
+P:168.*:::6666
+
+# Listen on port 7700 for clients that connect to "127.0.0.1"
+# where "127.0.0.1" can be the IP number of any of your interfaces.
+P::127.0.0.1::7700
+# Bind to all interfaces:
+P::*::6669
+
+# Open a client UNIX port on /tmp/.ircd
P:/tmp/.ircd:::6667
+# Listen on loopback and eth0 (192.168.1.1) for other servers:
+P::192.168.1.1::4400 # <<--- The last P: line not specifying 127.0.0.1
+ # is uses as IP# for _outgoing_ connections.
+P::127.0.0.1::4400
+# where 4400 is the server port (as specified on the M: line)
+
#
# Well, you have now reached the end of this sample configuration file
# If you have any questions, feel free to mail <doco-com@undernet.org>