2016-08-19 17:14:17 -07:00
|
|
|
# bind
|
|
|
|
|
|
2017-07-24 08:24:53 -07:00
|
|
|
*bind* overrides the host to which the server should bind.
|
|
|
|
|
|
|
|
|
|
Normally, the listener binds to the wildcard host. However, you may force the listener to bind to
|
|
|
|
|
another IP instead. This directive accepts only an address, not a port.
|
2016-08-19 17:14:17 -07:00
|
|
|
|
|
|
|
|
## Syntax
|
|
|
|
|
|
|
|
|
|
~~~ txt
|
2016-10-10 20:13:22 +01:00
|
|
|
bind ADDRESS
|
2016-08-19 17:14:17 -07:00
|
|
|
~~~
|
|
|
|
|
|
2016-10-10 20:13:22 +01:00
|
|
|
**ADDRESS** is the IP address to bind to.
|
2016-08-19 17:14:17 -07:00
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
|
|
To make your socket accessible only to that machine, bind to IP 127.0.0.1 (localhost):
|
|
|
|
|
|
2017-09-15 09:56:05 +01:00
|
|
|
~~~
|
|
|
|
|
. {
|
|
|
|
|
bind 127.0.0.1
|
|
|
|
|
}
|
2016-08-19 17:14:17 -07:00
|
|
|
~~~
|