From ae4177ec4e25271f329749c88aeacad122e5ff72 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 18 Jan 2024 13:01:04 -0400 Subject: [PATCH] comment --- ..._275507b26ca13e5d55deec4b7af60699._comment | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment diff --git a/doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment b/doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment new file mode 100644 index 0000000000..b05edeb28a --- /dev/null +++ b/doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2024-01-18T16:47:15Z" + content=""" +--listen takes an IP address (or hostname), +it does not let you specify the port. I've clarified the documentation +about this. + +I don't reproduce the behavior you show, when I try that the process +runs but does not bind to any port, and in .git/annex/daemon.log, I see: + + WebApp crashed: Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = Nothing}, host name: Just "0.0.0.0:8888", service name: Nothing): does not exist (Name or service not known) + +This may be an OS or resolver difference. If "0.0.0.0:8888" somehow +resolves to an IP address on your system, then the webapp will listen +on that IP address I suppose. But it's not expecting that to specify a +port. + +The webapp outputs the full url, including the port it chose. +Since that url also includes an auth token that is required to use the +webapp, specifying the port for it to listen on does not seem very useful. + +What's your use case for wanting to specify a port? +"""]] -- 2.30.2