Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Dirk-Willem van Gulik <dirkx@webweaving.org>
To: Juliusz Chroboczek <jch@irif.fr>
Cc: galene@lists.galene.org
Subject: [Galene] Re: Turn binding to the ANY Address - even when specified
Date: Thu, 16 Jan 2025 13:15:33 +0100	[thread overview]
Message-ID: <9942F645-605D-4F6D-AB5F-E7B5522CD3C3@webweaving.org> (raw)
In-Reply-To: <255B813A-A1F3-48A5-B4C8-4A340919BDCC@webweaving.org>

[-- Attachment #1: Type: text/plain, Size: 1763 bytes --]

On 15 Jan 2025, at 16:56, Dirk-Willem van Gulik <dirkx@webweaving.org> wrote:
> 
>> On 15 Jan 2025, at 15:03, Juliusz Chroboczek <jch@irif.fr> wrote:
>> 
>>> When starting galene with an explcit IP Address on a machine with multiple Ip addresses; e.g. with:
>>> 
>>> 	./galene  -turn 11.123.4.123:1194 ....
>>> 
>>> netstat/lsof shows that it is still bound to the ANY address:
>>> 
>>> 	  # lsof -n | grep LISTEN
>>> 	   ....
>>> 	   galene    49935 galene    7u     IPv4 0xfffff80019daf000        0     TCP *:1194->*:* (LISTEN)
>>> 
>>> Is this the expected behaviour (i.e. intentional and for a reason) - or
>>> a blemish/thing that I should try to fix ?
>> 
>> Only the address you specified is advertised to clients, but the server
>> listens on the wildcard address.  This allows us to change the server's
>> address without tearing down the socket when running with "-turn auto".
> 
> So I think below is a fairly simple change - where the 'auto' case is kept as is - and the listener is ONLY bound to a specific IP if it is specified. Otherwise it becomes *:1234 or a found public IP address.
> 
> So now [-turn [ip|fqdn]:<port>] behaves exactly like -http.
> 
>> So let me know if it's important for you.
> 
> 
> So being able to bind it is convenient on a machine with multiple IPs or a machine that straddles networks. As otherwise the galene starting `second' looses the race for 0.0.0.0. . Or a machine with an anal firewall/ACL system - the listen() gets a permission error.

Ignore this - there is a whole general class of cases when you have VLANs, IPv6 or an iSCSI that surfaces as an interface on a machine which goes wrong.

Will repost with a better solution once I've gone through all the edge cases.

Dw


[-- Attachment #2: Type: text/html, Size: 3833 bytes --]

  reply	other threads:[~2025-01-16 12:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-15 11:30 [Galene] " Dirk-Willem van Gulik
2025-01-15 14:03 ` [Galene] " Juliusz Chroboczek
2025-01-15 15:56   ` Dirk-Willem van Gulik
2025-01-16 12:15     ` Dirk-Willem van Gulik [this message]
2025-01-16 12:55       ` Juliusz Chroboczek
2025-01-16 17:20         ` Dirk-Willem van Gulik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9942F645-605D-4F6D-AB5F-E7B5522CD3C3@webweaving.org \
    --to=dirkx@webweaving.org \
    --cc=galene@lists.galene.org \
    --cc=jch@irif.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox