GNU bug report logs -
#34617
27.0.50; Can't bind a server process to all interfaces?
Previous Next
Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>
Date: Fri, 22 Feb 2019 13:46:01 UTC
Severity: normal
Tags: fixed
Found in version 27.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 34617 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> I'm looking to bind a server process to all interfaces on the machine.
> If I say:
>
> (make-network-process
> :name name
> :family 'ipv4
> :service port
> :host (system-name)
> :server t))
>
> then the process won't be listening to the localhost address, and if I
> say :host nil, it'll only be listening to the localhost address.
>
> Am I missing something, or does Emacs just not have a way to listen to
> INADDR_ANY?
>
Does :host "0.0.0.0" not work? Seems ok to me:
(setq proc (make-network-process
:name "foo"
:family 'ipv4
:service 6666
:host "0.0.0.0"
:server t))
M-x list-processes
foo -- listen -- -- Main (network server on 0.0.0.0)
foo <127.0.0... -- open foo <127.0.0.1:63650> -- Main (network connection to 127.0.0.1)
foo <172.26.... -- open foo <172.26.128.66:63605> -- Main (network connection to 172.26.128.66)
foo <172.26.... -- open foo <172.26.148.3:63628> -- Main (network connection to 172.26.148.3)
Robert
This bug report was last modified 5 years and 241 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.