From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#34617: 27.0.50; Can't bind a server process to all interfaces? Date: Fri, 22 Feb 2019 15:00:17 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="1990"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34617@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 22 15:01:42 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxBOW-0000Kl-Id for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Feb 2019 15:01:40 +0100 Original-Received: from localhost ([127.0.0.1]:51201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxBOV-00067m-H9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Feb 2019 09:01:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxBOL-00065W-U8 for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 09:01:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxBNy-0006ok-RE for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 09:01:10 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxBNu-0006gk-Bl for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 09:01:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gxBNu-0004q6-98 for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 09:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Feb 2019 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34617 X-GNU-PR-Package: emacs Original-Received: via spool by 34617-submit@debbugs.gnu.org id=B34617.155084402818540 (code B ref 34617); Fri, 22 Feb 2019 14:01:02 +0000 Original-Received: (at 34617) by debbugs.gnu.org; 22 Feb 2019 14:00:28 +0000 Original-Received: from localhost ([127.0.0.1]:47690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxBNL-0004oy-Sd for submit@debbugs.gnu.org; Fri, 22 Feb 2019 09:00:28 -0500 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:54061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxBNK-0004ok-06 for 34617@debbugs.gnu.org; Fri, 22 Feb 2019 09:00:26 -0500 Original-Received: by mail-wm1-f45.google.com with SMTP id e74so2042890wmg.3 for <34617@debbugs.gnu.org>; Fri, 22 Feb 2019 06:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=HSsw+OtCKgmAYnG4zywdfIUAetco0pL9oN7F6i4fPxA=; b=lBhsAOVK1Dzk0RXhoiorsNA7oBMppOjtjcJwg2LV+jIOJqwYWn0izNXRTo4youF2wj YyAtO8VlhysXTFlVfn58/0eRlHX3bmuiudJUNAGFndnTIVtryeHrHrjeMCKFIrjafP6M 5OLHz0f85WhDw0jSi1uSEx7dYeGK9VcGLEadGpreJ/Ybiz6JK9OgjEuux3TstMCOf+3N nUnLZ2/mjjJCADWaAOiddHp8PRG3M5GsspHQnk8A+Rdb72YIVlroF5fkL05Osl3KXP50 DQmC9KXQW5kh6Qsd74D/qKo4fPsoojeWUjVfRXflY7qEPZZaafKVXsMC9kFgwWL031Ti RjsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=HSsw+OtCKgmAYnG4zywdfIUAetco0pL9oN7F6i4fPxA=; b=p+12nkUBRHlYnfM1+PKjwIOxMkDU8Ns3gZARjynkFc/NFl7PwBPZA5fYvBYfEx5hAG g1FiTkQzVwZQw6nonFvJEU8jnBibf8CxhnQyW2/x9VFwqSfxpC4MdVszMJogwMb8/LCJ 0sHFGS5bVfLmMOEx97hP496xZBEjkm0woiKoEXLzH+Z93TJ4jhtc93eYGc/jTfK94wOL e6AgOAA7i7yevF7XiIO64JKs1thgpE/4hr8WBaZoSIrHrHdCyLu2uAYLuH10vF+Jtpiq 4Y0IBj2TKHpwm8p3TBPdnM0LHVk09ClE+re+MF4tlaUsfTuKPfmbjlLfZ8ZvdAOym3V6 uMQA== X-Gm-Message-State: AHQUAuaYbbbJrDx20ESKXueNYKi4FRd3k8yAGpWbEF7IIvvz2jQX8UKU SUsTZYDB/An7sxZ1eRvyVIIneh3li8M= X-Google-Smtp-Source: AHgI3IaNSOfHjvaMd7Rlb9gZHUJVqSjoiTby6Wm39IS9RUuj3VqI9Ri0c1K4u3Uu6rQoW0vxTIQKZA== X-Received: by 2002:a1c:96c5:: with SMTP id y188mr2656051wmd.103.1550844019531; Fri, 22 Feb 2019 06:00:19 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id n129sm1447547wmf.21.2019.02.22.06.00.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 22 Feb 2019 06:00:18 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Lars Ingebrigtsen's message of "Fri, 22 Feb 2019 14:43:48 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155641 Archived-At: Lars Ingebrigtsen 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